mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -2663,13 +2663,14 @@ void ModuleFile::lookupObjCMethods(
|
||||
}
|
||||
}
|
||||
|
||||
void ModuleFile::lookupImportedSPIGroups(const ModuleDecl *importedModule,
|
||||
SmallVectorImpl<Identifier> &spiGroups) const {
|
||||
void ModuleFile::lookupImportedSPIGroups(
|
||||
const ModuleDecl *importedModule,
|
||||
llvm::SmallSetVector<Identifier, 4> &spiGroups) const {
|
||||
for (auto &dep : Dependencies) {
|
||||
auto depSpis = dep.spiGroups;
|
||||
if (dep.Import.hasValue() && dep.Import->importedModule == importedModule &&
|
||||
!depSpis.empty()) {
|
||||
spiGroups.append(depSpis.begin(), depSpis.end());
|
||||
spiGroups.insert(depSpis.begin(), depSpis.end());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user