summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-04-19 12:09:22 -0700
committerGitHub <noreply@github.com>2022-04-19 12:09:22 -0700
commit3d1d692f939d2e23704a90a9cd009194905de5dc (patch)
treef983e5b5c323a5aa63ceda3b5f46d5837d161312 /source/slang/slang-check-decl.cpp
parentd939773a9127bccbbd22903eb5b5620ad7127d37 (diff)
Make translation units in the same CompileReq visible to `import`. (#2184)
* Make translation unitts in the same CompileReq visible to `import`. * Fix code review comments. Co-authored-by: Yong He <yhe@nvidia.com> Co-authored-by: Theresa Foley <10618364+tangent-vector@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index dbbf7e973..8db157a37 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -5033,7 +5033,8 @@ namespace Slang
getLinkage(),
name,
decl->moduleNameAndLoc.loc,
- getSink());
+ getSink(),
+ m_shared->m_environmentModules);
// If we didn't find a matching module, then bail out
if (!importedModule)