Skip to content

Commit 92a7e78

Browse files
committed
C: do the minimal change to ValueNumberBound instead
1 parent 698e05f commit 92a7e78

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/semantic/SemanticExprSpecific.qll

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,15 @@ module SemanticExprConfig {
286286
)
287287
}
288288

289-
class Bound = IRBound::Bound;
289+
class Bound instanceof IRBound::Bound {
290+
string toString() { result = super.toString() }
291+
292+
final Location getLocation() { result = super.getLocation() }
293+
}
294+
295+
private class ValueNumberBound extends Bound instanceof IRBound::ValueNumberBound {
296+
override string toString() { result = IRBound::ValueNumberBound.super.toString() }
297+
}
290298

291299
predicate zeroBound(Bound bound) { bound instanceof IRBound::ZeroBound }
292300

0 commit comments

Comments
 (0)