Skip to content

Commit 1363c54

Browse files
committed
C++: Add 'asIndirectInstruction' as a public predicate.
1 parent 09caeca commit 1363c54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,12 @@ module Public {
321321
*/
322322
Operand asIndirectOperand(int index) { hasOperandAndIndex(this, result, index) }
323323

324+
/**
325+
* Gets the instruction that is indirectly tracked by this node behind
326+
* `index` number of indirections.
327+
*/
328+
Instruction asIndirectInstruction(int index) { hasInstructionAndIndex(this, result, index) }
329+
324330
/**
325331
* Holds if this node is at index `i` in basic block `block`.
326332
*

0 commit comments

Comments
 (0)