mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
C++: In dataflow use the AST representation of IR Instructions and Operands
This commit is contained in:
@@ -357,6 +357,8 @@ class InstructionNode extends Node0 {
|
||||
|
||||
/** Gets the instruction corresponding to this node. */
|
||||
Instruction getInstruction() { result = instr }
|
||||
|
||||
override string toStringImpl() { result = instr.getAst().toString() }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -370,6 +372,8 @@ class OperandNode extends Node, Node0 {
|
||||
|
||||
/** Gets the operand corresponding to this node. */
|
||||
Operand getOperand() { result = node.getOperand() }
|
||||
|
||||
override string toStringImpl() { result = op.getDef().getAst().toString() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user