Skip to content

Commit 7ea0ead

Browse files
committed
Swift: add missing Builtin symbols
1 parent 2d28890 commit 7ea0ead

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

swift/extractor/SwiftBuiltinSymbols.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,9 @@ constexpr std::array swiftBuiltins = {
6767
"Vec16xFPIEEE64",
6868
"Vec32xFPIEEE64",
6969
"Vec64xFPIEEE64",
70+
71+
"buildDefaultActorExecutorRef",
72+
"buildMainActorExecutorRef",
73+
"buildOrdinarySerialExecutorRef",
7074
};
7175
}

swift/ql/test/library-tests/elements/expr/methodlookup/PrintAst.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ methodlookup.swift:
6262
#-----| getResult(): [CallExpr] call to UnownedSerialExecutor.init(_:)
6363
#-----| getFunction(): [MethodLookupExpr] UnownedSerialExecutor.init(_:)
6464
#-----| getBase(): [TypeExpr] UnownedSerialExecutor.Type
65-
#-----| getArgument(0): [Argument] : call to ...
66-
#-----| getExpr(): [CallExpr] call to ...
67-
#-----| getFunction(): [DeclRefExpr] (unknown declaration)
65+
#-----| getArgument(0): [Argument] : call to buildDefaultActorExecutorRef(_:)
66+
#-----| getExpr(): [CallExpr] call to buildDefaultActorExecutorRef(_:)
67+
#-----| getFunction(): [DeclRefExpr] buildDefaultActorExecutorRef(_:)
6868
#-----| getArgument(0): [Argument] : self
6969
#-----| getExpr(): [DeclRefExpr] self
7070
# 15| [ClassDecl] Baz

swift/ql/test/library-tests/elements/expr/methodlookup/getStaticTarget.expected

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
noStaticTarget
2-
| file://:0:0:0:0 | call to ... | file://:0:0:0:0 | (unknown declaration) | DeclRefExpr |
32
#select
4-
| file://:0:0:0:0 | call to ... | false | - |
53
| file://:0:0:0:0 | call to UnownedSerialExecutor.init(_:) | true | UnownedSerialExecutor.init(_:) |
4+
| file://:0:0:0:0 | call to buildDefaultActorExecutorRef(_:) | true | buildDefaultActorExecutorRef(_:) |
65
| file://:0:0:0:0 | call to zeroInitializer() | true | zeroInitializer() |
76
| file://:0:0:0:0 | call to zeroInitializer() | true | zeroInitializer() |
87
| file://:0:0:0:0 | call to zeroInitializer() | true | zeroInitializer() |

0 commit comments

Comments
 (0)