Skip to content

Commit dc8b168

Browse files
committed
Test
1 parent c0c73f6 commit dc8b168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/extractor/translators/TypeTranslator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ void TypeTranslator::fillAnyGenericType(const swift::AnyGenericType& type,
162162
codeql::AnyGenericType& entry) {
163163
if (!type.getDecl()->isUnavailable()) {
164164
entry.declaration = dispatcher.fetchLabel(type.getDecl());
165+
entry.parent = dispatcher.fetchOptionalLabel(type.getParent());
165166
}
166-
entry.parent = dispatcher.fetchOptionalLabel(type.getParent());
167167
}
168168

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

0 commit comments

Comments
 (0)