Skip to content

Commit 888a831

Browse files
committed
C++: Use 'ssaDefReachesReadExt' instead of 'ssaDefReachesRead'.
1 parent 556dc28 commit 888a831

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ module IteratorFlow {
17631763
crementCall = def.getValue().asInstruction().(StoreInstruction).getSourceValue() and
17641764
sv = def.getSourceVariable() and
17651765
bb.getInstruction(i) = crementCall and
1766-
Ssa::ssaDefReachesRead(sv, result.asDef(), bb, i)
1766+
Ssa::ssaDefReachesReadExt(sv, result.asDef(), bb, i)
17671767
)
17681768
}
17691769

@@ -1797,7 +1797,7 @@ module IteratorFlow {
17971797
isIteratorWrite(writeToDeref, address) and
17981798
operandForFullyConvertedCall(address, starCall) and
17991799
bbStar.getInstruction(iStar) = starCall and
1800-
Ssa::ssaDefReachesRead(_, def.asDef(), bbStar, iStar) and
1800+
Ssa::ssaDefReachesReadExt(_, def.asDef(), bbStar, iStar) and
18011801
ultimate = getAnUltimateDefinition*(def) and
18021802
beginStore = ultimate.getValue().asInstruction() and
18031803
operandForFullyConvertedCall(beginStore.getSourceValueOperand(), beginCall)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,8 +1036,8 @@ module SsaCached {
10361036
}
10371037

10381038
cached
1039-
predicate ssaDefReachesRead(SourceVariable v, Definition def, IRBlock bb, int i) {
1040-
SsaImpl::ssaDefReachesRead(v, def, bb, i)
1039+
predicate ssaDefReachesReadExt(SourceVariable v, DefinitionExt def, IRBlock bb, int i) {
1040+
SsaImpl::ssaDefReachesReadExt(v, def, bb, i)
10411041
}
10421042

10431043
predicate variableRead = SsaInput::variableRead/4;

0 commit comments

Comments
 (0)