Skip to content

Commit a01a473

Browse files
committed
C++/C#: Sync identical files.
1 parent 3a1a9a7 commit a01a473

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/Operand.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ class CallTargetOperand extends RegisterOperand {
412412
*/
413413
class ArgumentOperand extends RegisterOperand {
414414
override ArgumentOperandTag tag;
415+
416+
/** Gets the `CallInstruction` for which this is an argument. */
417+
CallInstruction getCall() { result.getAnArgumentOperand() = this }
415418
}
416419

417420
/**

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/Operand.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ class CallTargetOperand extends RegisterOperand {
412412
*/
413413
class ArgumentOperand extends RegisterOperand {
414414
override ArgumentOperandTag tag;
415+
416+
/** Gets the `CallInstruction` for which this is an argument. */
417+
CallInstruction getCall() { result.getAnArgumentOperand() = this }
415418
}
416419

417420
/**

csharp/ql/src/experimental/ir/implementation/raw/Operand.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ class CallTargetOperand extends RegisterOperand {
412412
*/
413413
class ArgumentOperand extends RegisterOperand {
414414
override ArgumentOperandTag tag;
415+
416+
/** Gets the `CallInstruction` for which this is an argument. */
417+
CallInstruction getCall() { result.getAnArgumentOperand() = this }
415418
}
416419

417420
/**

csharp/ql/src/experimental/ir/implementation/unaliased_ssa/Operand.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ class CallTargetOperand extends RegisterOperand {
412412
*/
413413
class ArgumentOperand extends RegisterOperand {
414414
override ArgumentOperandTag tag;
415+
416+
/** Gets the `CallInstruction` for which this is an argument. */
417+
CallInstruction getCall() { result.getAnArgumentOperand() = this }
415418
}
416419

417420
/**

0 commit comments

Comments
 (0)