summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 39f0b9096..396fdd297 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -6830,7 +6830,7 @@ namespace Slang
void SemanticsVisitor::importFileDeclIntoScope(Scope* scope, FileDecl* fileDecl)
{
// Create a new sub-scope to wire the module
- // into our lookup chain.
+ // into our lookup chain.
auto subScope = getASTBuilder()->create<Scope>();
subScope->containerDecl = fileDecl;
@@ -6882,10 +6882,10 @@ namespace Slang
// We need to look for a module with the specified name
// (whether it has already been loaded, or needs to
// be loaded), and then put its declarations into
- // the current scope.
+ // the module's scope.
auto name = decl->moduleNameAndLoc.name;
- auto scope = decl->scope;
+ auto scope = getModuleDecl(decl)->ownedScope;
// Try to load a module matching the name
auto importedModule = findOrImportModule(