Skip to content

Commit 01f3150

Browse files
authored
Merge pull request github#11092 from hvitved/swift/avoid-deprecated-ssa-predicates
Swift: Avoid calls to deprecated SSA predicates
2 parents 499f20f + 4e3fcc3 commit 01f3150

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
@@ -101,7 +101,7 @@ module Ssa {
101101
ControlFlowNode getAFirstRead() {
102102
exists(SsaInput::BasicBlock bb1, int i1, SsaInput::BasicBlock bb2, int i2 |
103103
this.definesAt(_, bb1, i1) and
104-
SsaImpl::adjacentDefNoUncertainReads(this, bb1, i1, bb2, i2) and
104+
SsaImpl::adjacentDefRead(this, bb1, i1, bb2, i2) and
105105
result = bb2.getNode(i2)
106106
)
107107
}
@@ -111,7 +111,7 @@ module Ssa {
111111
exists(SsaInput::BasicBlock bb1, int i1, SsaInput::BasicBlock bb2, int i2 |
112112
read1 = bb1.getNode(i1) and
113113
SsaInput::variableRead(bb1, i1, _, true) and
114-
SsaImpl::adjacentDefNoUncertainReads(this, bb1, i1, bb2, i2) and
114+
SsaImpl::adjacentDefRead(this, bb1, i1, bb2, i2) and
115115
read2 = bb2.getNode(i2)
116116
)
117117
}

0 commit comments

Comments
 (0)