Skip to content

Commit 3f532b2

Browse files
committed
Test
1 parent 858c262 commit 3f532b2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

swift/extractor/translators/TypeTranslator.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,8 @@ void TypeTranslator::fillBoundGenericType(const swift::BoundGenericType& type,
160160

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

169167
void TypeTranslator::fillType(const swift::TypeBase& type, codeql::Type& entry) {

0 commit comments

Comments
 (0)