File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation
csharp/ql/src/experimental/ir/implementation Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,9 @@ class CallTargetOperand extends RegisterOperand {
412
412
*/
413
413
class ArgumentOperand extends RegisterOperand {
414
414
override ArgumentOperandTag tag ;
415
+
416
+ /** Gets the `CallInstruction` for which this is an argument. */
417
+ CallInstruction getCall ( ) { result .getAnArgumentOperand ( ) = this }
415
418
}
416
419
417
420
/**
Original file line number Diff line number Diff line change @@ -412,6 +412,9 @@ class CallTargetOperand extends RegisterOperand {
412
412
*/
413
413
class ArgumentOperand extends RegisterOperand {
414
414
override ArgumentOperandTag tag ;
415
+
416
+ /** Gets the `CallInstruction` for which this is an argument. */
417
+ CallInstruction getCall ( ) { result .getAnArgumentOperand ( ) = this }
415
418
}
416
419
417
420
/**
Original file line number Diff line number Diff line change @@ -412,6 +412,9 @@ class CallTargetOperand extends RegisterOperand {
412
412
*/
413
413
class ArgumentOperand extends RegisterOperand {
414
414
override ArgumentOperandTag tag ;
415
+
416
+ /** Gets the `CallInstruction` for which this is an argument. */
417
+ CallInstruction getCall ( ) { result .getAnArgumentOperand ( ) = this }
415
418
}
416
419
417
420
/**
Original file line number Diff line number Diff line change @@ -412,6 +412,9 @@ class CallTargetOperand extends RegisterOperand {
412
412
*/
413
413
class ArgumentOperand extends RegisterOperand {
414
414
override ArgumentOperandTag tag ;
415
+
416
+ /** Gets the `CallInstruction` for which this is an argument. */
417
+ CallInstruction getCall ( ) { result .getAnArgumentOperand ( ) = this }
415
418
}
416
419
417
420
/**
You can’t perform that action at this time.
0 commit comments