Skip to content

Commit 96639c5

Browse files
committed
Swift: Fix SummaryCall::getEnclosingCallable
1 parent 30163e4 commit 96639c5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowDispatch.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ class SummaryCall extends DataFlowCall, TSummaryCall {
219219
/** Gets the data flow node that this call targets. */
220220
Node getReceiver() { result = receiver }
221221

222-
override DataFlowCallable getEnclosingCallable() {
223-
result = TDataFlowFunc(c.getEnclosingFunction())
224-
}
222+
override DataFlowCallable getEnclosingCallable() { result = TSummarizedCallable(c) }
225223

226224
override string toString() { result = "[summary] call to " + receiver + " in " + c }
227225

0 commit comments

Comments
 (0)