summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-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 912cd2e10..d8879c690 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -4182,6 +4182,9 @@ void Linkage::loadParsedModule(
if (errorCountAfter != errorCountBefore)
{
// There must have been an error in the loaded module.
+ // Remove from maps if there were errors during semantic checking
+ mapPathToLoadedModule.remove(mostUniqueIdentity);
+ mapNameToLoadedModules.remove(name);
}
else
{