Skip to content

Commit b01a45f

Browse files
committed
C++: Respond to PR reviews.
1 parent bda46b3 commit b01a45f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ abstract class InstructionNode0 extends Node0Impl {
119119
result = instr.getOpcode().toString()
120120
}
121121

122-
final override predicate isGLValue() { instr.isGLValue() }
122+
final override predicate isGLValue() { exists(getInstructionType(instr, true)) }
123123
}
124124

125125
/**
@@ -160,7 +160,7 @@ abstract class OperandNode0 extends Node0Impl {
160160

161161
override string toStringImpl() { result = op.toString() }
162162

163-
final override predicate isGLValue() { op.isGLValue() }
163+
final override predicate isGLValue() { exists(getOperandType(op, true)) }
164164
}
165165

166166
/**

0 commit comments

Comments
 (0)