Skip to content

Commit 36cfe36

Browse files
committed
C++: Add TConstantValueNumber case to ValueNumber::getKind
1 parent 70131e6 commit 36cfe36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/gvn/ValueNumbering.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ class ValueNumber extends TValueNumber {
5858
or
5959
this instanceof TInitializeThisValueNumber and result = "InitializeThis"
6060
or
61+
this instanceof TConstantValueNumber and result = "Constant"
62+
or
6163
this instanceof TStringConstantValueNumber and result = "StringConstant"
6264
or
6365
this instanceof TFieldAddressValueNumber and result = "FieldAddress"

0 commit comments

Comments
 (0)