mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Change ASTContext's LoadedModules map to be keyed by Identifiers, not strings.
No intended functionality change, but there's no reason to be performing string lookups here. Swift SVN r20902
This commit is contained in:
@@ -311,7 +311,7 @@ Module *SerializedModuleLoader::loadModule(SourceLoc importLoc,
|
||||
assert(moduleInputBuffer);
|
||||
|
||||
auto M = Module::create(moduleID.first, Ctx);
|
||||
Ctx.LoadedModules[moduleID.first.str()] = M;
|
||||
Ctx.LoadedModules[moduleID.first] = M;
|
||||
|
||||
(void)loadAST(*M, moduleID.second, std::move(moduleInputBuffer),
|
||||
std::move(moduleDocInputBuffer), isFramework);
|
||||
|
||||
Reference in New Issue
Block a user