mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Swift: Work around assertion failures in mangler
This commit is contained in:
@@ -170,7 +170,7 @@ static std::unordered_set<swift::ModuleDecl*> extractDeclarations(
|
||||
bodyEmissionStrategy);
|
||||
auto topLevelDecls = getTopLevelDecls(module, primaryFile, lazyDeclaration);
|
||||
for (auto decl : topLevelDecls) {
|
||||
if (decl->isUnavailable()) {
|
||||
if (decl->isUnavailable() && !llvm::isa<swift::NominalTypeDecl>(decl)) {
|
||||
continue;
|
||||
}
|
||||
visitor.extract(decl);
|
||||
|
||||
Reference in New Issue
Block a user