C++: Add DataFlow::Node.asDefiningArgument in IR

This commit is contained in:
Jonas Jensen
2020-01-21 09:54:40 +01:00
parent 80997a3323
commit 5ac56c2e3a

View File

@@ -55,6 +55,9 @@ class Node extends TIRDataFlowNode {
*/
Expr asConvertedExpr() { result = instr.getConvertedResultExpression() }
/** Gets the argument that defines this `DefinitionByReferenceNode`, if any. */
Expr asDefiningArgument() { result = this.(DefinitionByReferenceNode).getArgument() }
/** Gets the parameter corresponding to this node, if any. */
Parameter asParameter() { result = instr.(InitializeParameterInstruction).getParameter() }