Skip to content

Commit e2afad9

Browse files
author
Dave Bartolomeo
authored
Merge pull request github#3620 from MathiasVP/fix-missing-case-in-getkind
C++: Fix missing case in ValueNumber::getKind
2 parents c806e22 + 7328429 commit e2afad9

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-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"

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/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"

cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_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"

csharp/ql/src/semmle/code/csharp/ir/implementation/raw/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"

csharp/ql/src/semmle/code/csharp/ir/implementation/unaliased_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)