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:
@@ -150,7 +150,7 @@ ErrorOr<ModuleDependencies> ModuleDependencyScanner::scanInterfaceFile(
|
||||
// printed in the interface file, e.g. SwiftOnoneSupport.
|
||||
auto &imInfo = mainMod->getImplicitImportInfo();
|
||||
for (auto import: imInfo.AdditionalUnloadedImports) {
|
||||
Result->addModuleDependency(import.module.getModulePath().front().Item.str(), &alreadyAddedModules);
|
||||
Result->addModuleDependency(import.module.getModulePath(), &alreadyAddedModules);
|
||||
}
|
||||
return std::error_code();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user