Skip to content

Commit 8115774

Browse files
d10cMathiasVP
authored andcommitted
Swift: Add the capture flow step as part of the normal data flow relation
TODO: see if we need to exclude duplicate SSA steps
1 parent 4e1b44a commit 8115774

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ private module Cached {
291291
// flow through a flow summary (extension of `SummaryModelCsv`)
292292
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom.(FlowSummaryNode).getSummaryNode(),
293293
nodeTo.(FlowSummaryNode).getSummaryNode(), true)
294+
or
295+
// flow step according to the closure capture library
296+
captureValueStep(nodeFrom, nodeTo)
294297
}
295298

296299
/**

0 commit comments

Comments
 (0)