Skip to content

Commit 726f999

Browse files
committed
C++: remove direct IR dependency in range analysis
1 parent 1aecc64 commit 726f999

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/semantic/analysis/RangeAnalysisImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ private import RangeAnalysisSpecific
33
private import experimental.semmle.code.cpp.semantic.analysis.FloatDelta
44
private import RangeUtils
55
private import experimental.semmle.code.cpp.semantic.SemanticBound as SemanticBound
6-
private import semmle.code.cpp.ir.IR as IR
76
private import experimental.semmle.code.cpp.semantic.SemanticLocation
7+
private import experimental.semmle.code.cpp.semantic.SemanticSSA
88

99
module ConstantBounds implements BoundSig<FloatDelta> {
1010
class SemBound instanceof SemanticBound::SemBound {
1111
SemBound() {
1212
this instanceof SemanticBound::SemZeroBound
1313
or
14-
this.(SemanticBound::SemSsaBound).getExpr(0) instanceof IR::PhiInstruction
14+
this.(SemanticBound::SemSsaBound).getAVariable() instanceof SemSsaPhiNode
1515
}
1616

1717
string toString() { result = super.toString() }

0 commit comments

Comments
 (0)