File tree Expand file tree Collapse file tree
cpp/ql/lib/semmle/code/cpp/ir/implementation
csharp/ql/src/experimental/ir/implementation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -753,11 +753,21 @@ class ReturnValueInstruction extends ReturnInstruction {
753753 */
754754 final LoadOperand getReturnValueOperand ( ) { result = getAnOperand ( ) }
755755
756+ /**
757+ * Gets the operand that provides the address of the value being returned by the function.
758+ */
759+ final AddressOperand getReturnAddressOperand ( ) { result = this .getAnOperand ( ) }
760+
756761 /**
757762 * Gets the instruction whose result provides the value being returned by the function, if an
758763 * exact definition is available.
759764 */
760- final Instruction getReturnValue ( ) { result = getReturnValueOperand ( ) .getDef ( ) }
765+ final Instruction getReturnValue ( ) { result = this .getReturnValueOperand ( ) .getDef ( ) }
766+
767+ /**
768+ * Gets the instruction whose result provides the address of the value being returned by the function.
769+ */
770+ final Instruction getReturnAddress ( ) { result = this .getReturnAddressOperand ( ) .getDef ( ) }
761771}
762772
763773/**
Original file line number Diff line number Diff line change @@ -753,11 +753,21 @@ class ReturnValueInstruction extends ReturnInstruction {
753753 */
754754 final LoadOperand getReturnValueOperand ( ) { result = getAnOperand ( ) }
755755
756+ /**
757+ * Gets the operand that provides the address of the value being returned by the function.
758+ */
759+ final AddressOperand getReturnAddressOperand ( ) { result = this .getAnOperand ( ) }
760+
756761 /**
757762 * Gets the instruction whose result provides the value being returned by the function, if an
758763 * exact definition is available.
759764 */
760- final Instruction getReturnValue ( ) { result = getReturnValueOperand ( ) .getDef ( ) }
765+ final Instruction getReturnValue ( ) { result = this .getReturnValueOperand ( ) .getDef ( ) }
766+
767+ /**
768+ * Gets the instruction whose result provides the address of the value being returned by the function.
769+ */
770+ final Instruction getReturnAddress ( ) { result = this .getReturnAddressOperand ( ) .getDef ( ) }
761771}
762772
763773/**
Original file line number Diff line number Diff line change @@ -753,11 +753,21 @@ class ReturnValueInstruction extends ReturnInstruction {
753753 */
754754 final LoadOperand getReturnValueOperand ( ) { result = getAnOperand ( ) }
755755
756+ /**
757+ * Gets the operand that provides the address of the value being returned by the function.
758+ */
759+ final AddressOperand getReturnAddressOperand ( ) { result = this .getAnOperand ( ) }
760+
756761 /**
757762 * Gets the instruction whose result provides the value being returned by the function, if an
758763 * exact definition is available.
759764 */
760- final Instruction getReturnValue ( ) { result = getReturnValueOperand ( ) .getDef ( ) }
765+ final Instruction getReturnValue ( ) { result = this .getReturnValueOperand ( ) .getDef ( ) }
766+
767+ /**
768+ * Gets the instruction whose result provides the address of the value being returned by the function.
769+ */
770+ final Instruction getReturnAddress ( ) { result = this .getReturnAddressOperand ( ) .getDef ( ) }
761771}
762772
763773/**
Original file line number Diff line number Diff line change @@ -753,11 +753,21 @@ class ReturnValueInstruction extends ReturnInstruction {
753753 */
754754 final LoadOperand getReturnValueOperand ( ) { result = getAnOperand ( ) }
755755
756+ /**
757+ * Gets the operand that provides the address of the value being returned by the function.
758+ */
759+ final AddressOperand getReturnAddressOperand ( ) { result = this .getAnOperand ( ) }
760+
756761 /**
757762 * Gets the instruction whose result provides the value being returned by the function, if an
758763 * exact definition is available.
759764 */
760- final Instruction getReturnValue ( ) { result = getReturnValueOperand ( ) .getDef ( ) }
765+ final Instruction getReturnValue ( ) { result = this .getReturnValueOperand ( ) .getDef ( ) }
766+
767+ /**
768+ * Gets the instruction whose result provides the address of the value being returned by the function.
769+ */
770+ final Instruction getReturnAddress ( ) { result = this .getReturnAddressOperand ( ) .getDef ( ) }
761771}
762772
763773/**
You can’t perform that action at this time.
0 commit comments