C++: Fix pointer/pointee conflation.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-05-22 17:39:43 -07:00
parent a319fc0044
commit 36285ba2c5

View File

@@ -210,8 +210,8 @@ class IndirectOperand extends Node {
this.(RawIndirectOperand).getOperand() = operand and this.(RawIndirectOperand).getOperand() = operand and
this.(RawIndirectOperand).getIndirectionIndex() = indirectionIndex this.(RawIndirectOperand).getIndirectionIndex() = indirectionIndex
or or
this.(OperandNode).getOperand() = nodeHasOperand(this, Ssa::getIRRepresentationOfIndirectOperand(operand, indirectionIndex),
Ssa::getIRRepresentationOfIndirectOperand(operand, indirectionIndex) indirectionIndex - 1)
} }
/** Gets the underlying operand. */ /** Gets the underlying operand. */
@@ -250,8 +250,8 @@ class IndirectInstruction extends Node {
this.(RawIndirectInstruction).getInstruction() = instr and this.(RawIndirectInstruction).getInstruction() = instr and
this.(RawIndirectInstruction).getIndirectionIndex() = indirectionIndex this.(RawIndirectInstruction).getIndirectionIndex() = indirectionIndex
or or
this.(InstructionNode).getInstruction() = nodeHasInstruction(this, Ssa::getIRRepresentationOfIndirectInstruction(instr, indirectionIndex),
Ssa::getIRRepresentationOfIndirectInstruction(instr, indirectionIndex) indirectionIndex - 1)
} }
/** Gets the underlying instruction. */ /** Gets the underlying instruction. */