summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 688593529..0ba3e790c 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -575,7 +575,10 @@ RefPtr<ModuleDecl> CompileRequest::findOrImportModule(
{
// We seem to be in the middle of loading this module
mSink.diagnose(loc, Diagnostics::recursiveModuleImport, name);
+ return nullptr;
}
+
+ return loadedModule->moduleDecl;
}
// Derive a file name for the module, by taking the given