We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda46b3 commit b01a45fCopy full SHA for b01a45f
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll
@@ -119,7 +119,7 @@ abstract class InstructionNode0 extends Node0Impl {
119
result = instr.getOpcode().toString()
120
}
121
122
- final override predicate isGLValue() { instr.isGLValue() }
+ final override predicate isGLValue() { exists(getInstructionType(instr, true)) }
123
124
125
/**
@@ -160,7 +160,7 @@ abstract class OperandNode0 extends Node0Impl {
160
161
override string toStringImpl() { result = op.toString() }
162
163
- final override predicate isGLValue() { op.isGLValue() }
+ final override predicate isGLValue() { exists(getOperandType(op, true)) }
164
165
166
0 commit comments