Skip to content

Commit 5e5c4e9

Browse files
committed
Swift: Accept QL-for-QL recommendation.
1 parent c9a0067 commit 5e5c4e9

File tree

1 file changed

+2
-2
lines changed
  • swift/ql/lib/codeql/swift/dataflow

1 file changed

+2
-2
lines changed

swift/ql/lib/codeql/swift/dataflow/Ssa.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ module Ssa {
166166
value.(PropertyGetterCfgNode).getRef() = init
167167
)
168168
or
169-
exists(VarDecl var, SsaInput::BasicBlock bb, int blockIndex, ConditionElement ce, Expr init |
170-
this.definesAt(var, bb, blockIndex) and
169+
exists(SsaInput::BasicBlock bb, int blockIndex, ConditionElement ce, Expr init |
170+
this.definesAt(_, bb, blockIndex) and
171171
ce.getPattern() = bb.getNode(blockIndex).getNode().asAstNode() and
172172
init = ce.getInitializer() and
173173
strictcount(Ssa::WriteDefinition alt | alt.definesAt(_, bb, blockIndex)) = 1 // exclude cases where there are multiple writes from the same pattern, this is at best taint flow.

0 commit comments

Comments
 (0)