We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 403f3ca commit 1b6317dCopy full SHA for 1b6317d
swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll
@@ -170,10 +170,7 @@ private module Cached {
170
// flow through ternary operator `? :`
171
exists(IfExpr ie |
172
nodeTo.asExpr() = ie and
173
- (
174
- nodeFrom.asExpr() = ie.getThenExpr() or
175
- nodeFrom.asExpr() = ie.getElseExpr()
176
- )
+ nodeFrom.asExpr() = ie.getBranch(_)
177
)
178
or
179
// flow through a flow summary (extension of `SummaryModelCsv`)
0 commit comments