Skip to content

Commit ee9bdbb

Browse files
committed
Test
1 parent 1c101ca commit ee9bdbb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

swift/extractor/SwiftExtractor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ static std::unordered_set<swift::ModuleDecl*> extractDeclarations(
170170
bodyEmissionStrategy);
171171
auto topLevelDecls = getTopLevelDecls(module, primaryFile, lazyDeclaration);
172172
for (auto decl : topLevelDecls) {
173-
if (decl->isUnavailable() && !llvm::isa<swift::NominalTypeDecl>(decl) &&
174-
!llvm::isa<swift::VarDecl>(decl)) {
173+
if (decl->isUnavailable()) {
175174
continue;
176175
}
177176
visitor.extract(decl);

0 commit comments

Comments
 (0)