mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -960,7 +960,7 @@ SerializedModuleLoaderBase::loadModule(SourceLoc importLoc,
|
||||
|
||||
auto M = ModuleDecl::create(moduleID.Item, Ctx);
|
||||
M->setIsSystemModule(isSystemModule);
|
||||
Ctx.LoadedModules[moduleID.Item] = M;
|
||||
Ctx.addLoadedModule(M);
|
||||
SWIFT_DEFER { M->setHasResolvedImports(); };
|
||||
|
||||
StringRef moduleInterfacePathStr =
|
||||
@@ -1011,7 +1011,7 @@ MemoryBufferSerializedModuleLoader::loadModule(SourceLoc importLoc,
|
||||
return nullptr;
|
||||
|
||||
M->addFile(*file);
|
||||
Ctx.LoadedModules[moduleID.Item] = M;
|
||||
Ctx.addLoadedModule(M);
|
||||
return M;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user