C++: Add a 'getCall' predicate to 'ArgumentOperand'.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-01-30 17:28:19 +00:00
parent 7f6efae7dc
commit 3a1a9a771c

View File

@@ -412,6 +412,9 @@ class CallTargetOperand extends RegisterOperand {
*/
class ArgumentOperand extends RegisterOperand {
override ArgumentOperandTag tag;
/** Gets the `CallInstruction` for which this is an argument. */
CallInstruction getCall() { result.getAnArgumentOperand() = this }
}
/**