Skip to content

Commit b385ddb

Browse files
committed
Swift: do not extract non-AST types
1 parent f599c6d commit b385ddb

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

swift/extractor/infra/SwiftTagTraits.h

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,8 @@ MAP(swift::TypeBase, TypeTag)
288288
MAP(swift::BuiltinUnsafeValueBufferType, BuiltinUnsafeValueBufferTypeTag)
289289
MAP(swift::BuiltinDefaultActorStorageType, BuiltinDefaultActorStorageTypeTag)
290290
MAP(swift::BuiltinVectorType, BuiltinVectorTypeTag)
291-
#if CODEQL_SWIFT_VERSION_GE(5, 9)
292-
MAP(swift::BuiltinPackIndexType, void) // TODO: (introduced in 5.9)
293-
MAP(swift::BuiltinNonDefaultDistributedActorStorageType, void) // TODO: (introduced in 5.9)
294-
#endif
291+
MAP(swift::BuiltinPackIndexType, void) // SIL type, cannot really appear in the frontend run
292+
MAP(swift::BuiltinNonDefaultDistributedActorStorageType, void) // Does not appear in AST/SIL, only used during IRGen
295293
MAP(swift::TupleType, TupleTypeTag)
296294
MAP(swift::ReferenceStorageType, ReferenceStorageTypeTag)
297295
MAP(swift::WeakStorageType, WeakStorageTypeTag)
@@ -328,14 +326,12 @@ MAP(swift::TypeBase, TypeTag)
328326
MAP(swift::AnyFunctionType, AnyFunctionTypeTag)
329327
MAP(swift::FunctionType, FunctionTypeTag)
330328
MAP(swift::GenericFunctionType, GenericFunctionTypeTag)
331-
MAP(swift::SILFunctionType, void) // SIL types cannot really appear in the frontend run)
332-
MAP(swift::SILBlockStorageType, void) // SIL types cannot really appear in the frontend run)
333-
MAP(swift::SILBoxType, void) // SIL types cannot really appear in the frontend run)
334-
MAP(swift::SILMoveOnlyWrappedType, void) // SIL types cannot really appear in the frontend run)
335-
MAP(swift::SILTokenType, void) // SIL types cannot really appear in the frontend run)
336-
#if CODEQL_SWIFT_VERSION_GE(5, 9)
337-
MAP(swift::SILPackType, void) // TODO: (introduced in 5.9)
338-
#endif
329+
MAP(swift::SILFunctionType, void) // SIL types cannot really appear in the frontend run
330+
MAP(swift::SILBlockStorageType, void) // SIL types cannot really appear in the frontend run
331+
MAP(swift::SILBoxType, void) // SIL types cannot really appear in the frontend run
332+
MAP(swift::SILMoveOnlyWrappedType, void) // SIL types cannot really appear in the frontend run
333+
MAP(swift::SILTokenType, void) // SIL types cannot really appear in the frontend run
334+
MAP(swift::SILPackType, void) // SIL types cannot really appear in the frontend run
339335
MAP(swift::ProtocolCompositionType, ProtocolCompositionTypeTag)
340336
MAP(swift::ParameterizedProtocolType, ParameterizedProtocolTypeTag)
341337
MAP(swift::ExistentialType, ExistentialTypeTag)

0 commit comments

Comments
 (0)