Skip to content

Commit c0c73f6

Browse files
committed
Test
1 parent c78774e commit c0c73f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

swift/extractor/translators/TypeTranslator.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ void TypeTranslator::fillBoundGenericType(const swift::BoundGenericType& type,
160160

161161
void TypeTranslator::fillAnyGenericType(const swift::AnyGenericType& type,
162162
codeql::AnyGenericType& entry) {
163-
entry.declaration = dispatcher.fetchLabel(type.getDecl());
163+
if (!type.getDecl()->isUnavailable()) {
164+
entry.declaration = dispatcher.fetchLabel(type.getDecl());
165+
}
164166
entry.parent = dispatcher.fetchOptionalLabel(type.getParent());
165167
}
166168

0 commit comments

Comments
 (0)