mirror of
https://github.com/github/codeql.git
synced 2025-12-23 04:06:37 +01:00
C++: Fix pointer/pointee conflation.
This commit is contained in:
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user