mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Add conveniences to clean up import code
This commit is contained in:
@@ -202,8 +202,7 @@ void ModuleNameLookup<LookupStrategy>::lookupInModule(
|
||||
if (auto *loader = ctx.getClangModuleLoader()) {
|
||||
headerImportModule = loader->getImportedHeaderModule();
|
||||
if (headerImportModule) {
|
||||
ImportedModule import{ImportPath::Access(), headerImportModule};
|
||||
visitImport(import, nullptr);
|
||||
visitImport(ImportedModule(headerImportModule), nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user