|
@@ -4062,7 +4062,9 @@ void ASTReader::InitializeContext() {
|
|
if (Module *Imported = getSubmodule(Import.ID)) {
|
|
if (Module *Imported = getSubmodule(Import.ID)) {
|
|
makeModuleVisible(Imported, Module::AllVisible,
|
|
makeModuleVisible(Imported, Module::AllVisible,
|
|
/*ImportLoc=*/Import.ImportLoc);
|
|
/*ImportLoc=*/Import.ImportLoc);
|
|
- PP.makeModuleVisible(Imported, Import.ImportLoc);
|
|
|
|
|
|
+ if (Import.ImportLoc.isValid())
|
|
|
|
+ PP.makeModuleVisible(Imported, Import.ImportLoc);
|
|
|
|
+ // FIXME: should we tell Sema to make the module visible too?
|
|
}
|
|
}
|
|
}
|
|
}
|
|
ImportedModules.clear();
|
|
ImportedModules.clear();
|