We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0247a6 + 597b4ae commit 4624858Copy full SHA for 4624858
lib/Frontend/Frontend.cpp
@@ -517,7 +517,9 @@ void CompilerInstance::performSemaUpTo(SourceFile::ASTStage_t LimitStage) {
517
}
518
519
FrontendStatsTracer tracer(Context->Stats, "perform-sema");
520
- Context->LoadedModules[MainModule->getName()] = getMainModule();
+
521
+ ModuleDecl *mainModule = getMainModule();
522
+ Context->LoadedModules[mainModule->getName()] = mainModule;
523
524
if (Invocation.getInputKind() == InputFileKind::SIL) {
525
assert(!InputSourceCodeBufferIDs.empty());
0 commit comments