File tree 2 files changed +10
-0
lines changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ private import Node0ToString
9
9
private import DataFlowUtil
10
10
11
11
private class DebugNode0ToString extends Node0ToString {
12
+ DebugNode0ToString ( ) {
13
+ // Silence warning about `this` not being bound.
14
+ exists ( this )
15
+ }
16
+
12
17
override string instructionToString ( Instruction i ) { result = i .getDumpString ( ) }
13
18
14
19
override string operandToString ( Operand op ) {
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ private import DataFlowUtil
10
10
private import DataFlowPrivate
11
11
12
12
private class NormalNode0ToString extends Node0ToString {
13
+ NormalNode0ToString ( ) {
14
+ // Silence warning about `this` not being bound.
15
+ exists ( this )
16
+ }
17
+
13
18
override string instructionToString ( Instruction i ) {
14
19
if i .( InitializeParameterInstruction ) .getIRVariable ( ) instanceof IRThisVariable
15
20
then result = "this"
You can’t perform that action at this time.
0 commit comments