mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
don't assert when a module re-exports a module and one of its symbols (#64479)
rdar://106807038
This commit is contained in:
@@ -1397,6 +1397,9 @@ void ModuleDecl::getDisplayDecls(SmallVectorImpl<Decl*> &Results, bool Recursive
|
||||
llvm::SmallDenseMap<ModuleDecl *, SmallPtrSet<Decl *, 4>, 4> QualifiedImports;
|
||||
collectParsedExportedImports(this, Modules, QualifiedImports);
|
||||
for (const auto &QI : QualifiedImports) {
|
||||
auto Module = QI.getFirst();
|
||||
if (Modules.contains(Module)) continue;
|
||||
|
||||
auto &Decls = QI.getSecond();
|
||||
Results.append(Decls.begin(), Decls.end());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user