Converting ModuleDecl::ImportedModule from std::pair to a dedicated struct. (#31360)

This commit is contained in:
Daniel Sweeney
2020-04-30 21:26:03 -06:00
committed by GitHub
parent f503a2d58a
commit ea526c6383
25 changed files with 211 additions and 171 deletions

View File

@@ -911,7 +911,7 @@ static void collectModuleDependencies(ModuleDecl *TopMod,
TopMod->getImportedModules(Imports, ImportFilter);
for (auto Import : Imports) {
ModuleDecl *Mod = Import.second;
ModuleDecl *Mod = Import.importedModule;
if (Mod->isSystemModule())
continue;
// FIXME: Setup dependencies on the included headers.