Skip to content

Commit e163a1e

Browse files
committed
C++: Address review comment
1 parent deeaf70 commit e163a1e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ class Node0Impl extends TIRDataFlowNode0 {
4949
Instruction asInstruction() { result = this.(InstructionNode0).getInstruction() }
5050

5151
/** Gets the operands corresponding to this node, if any. */
52-
Operand asOperand() {
53-
result = this.(MultipleUseOperandNode0).getOperand() or
54-
result = this.(SingleUseOperandNode0).getOperand()
55-
}
52+
Operand asOperand() { result = this.(OperandNode0).getOperand() }
5653

5754
/** INTERNAL: Do not use. */
5855
Location getLocationImpl() {

0 commit comments

Comments
 (0)