Skip to content

Commit 556dc28

Browse files
committed
C++: Use 'phiHasInputFromBlockExt' instead of 'phiHasInputFromBlock'.
1 parent ceccc92 commit 556dc28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,8 +1031,8 @@ module SsaCached {
10311031
}
10321032

10331033
cached
1034-
Definition phiHasInputFromBlock(PhiNode phi, IRBlock bb) {
1035-
SsaImpl::phiHasInputFromBlock(phi, result, bb)
1034+
Definition phiHasInputFromBlockExt(PhiNode phi, IRBlock bb) {
1035+
SsaImpl::phiHasInputFromBlockExt(phi, result, bb)
10361036
}
10371037

10381038
cached
@@ -1189,11 +1189,11 @@ class Phi extends TPhi, SsaDef {
11891189

11901190
final override Location getLocation() { result = phi.getBasicBlock().getLocation() }
11911191

1192-
override string toString() { result = "Phi" }
1192+
override string toString() { result = phi.toString() }
11931193

11941194
SsaPhiNode getNode() { result.getPhiNode() = phi }
11951195

1196-
predicate hasInputFromBlock(Definition inp, IRBlock bb) { inp = phiHasInputFromBlock(phi, bb) }
1196+
predicate hasInputFromBlock(Definition inp, IRBlock bb) { inp = phiHasInputFromBlockExt(phi, bb) }
11971197

11981198
final Definition getAnInput() { this.hasInputFromBlock(result, _) }
11991199
}
@@ -1221,7 +1221,7 @@ class PhiNode extends SsaImpl::DefinitionExt {
12211221

12221222
/** Holds if `inp` is an input to this phi node along the edge originating in `bb`. */
12231223
predicate hasInputFromBlock(Definition inp, IRBlock bb) {
1224-
inp = SsaCached::phiHasInputFromBlock(this, bb)
1224+
inp = SsaCached::phiHasInputFromBlockExt(this, bb)
12251225
}
12261226

12271227
/** Gets a definition that is an input to this phi node. */

0 commit comments

Comments
 (0)