File tree Expand file tree Collapse file tree
cpp/ql/src/semmle/code/cpp/ir/implementation
csharp/ql/src/semmle/code/csharp/ir/implementation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -542,6 +542,9 @@ class ReturnIndirectionInstruction extends VariableInstruction {
542542 */
543543 final Language:: Parameter getParameter ( ) { result = var .( IRUserVariable ) .getVariable ( ) }
544544
545+ /**
546+ * Holds if this instruction is the return indirection for `this`.
547+ */
545548 final predicate isThisIndirection ( ) { var instanceof IRThisVariable }
546549}
547550
Original file line number Diff line number Diff line change @@ -541,6 +541,11 @@ class ReturnIndirectionInstruction extends VariableInstruction {
541541 * function.
542542 */
543543 final Language:: Parameter getParameter ( ) { result = var .( IRUserVariable ) .getVariable ( ) }
544+
545+ /**
546+ * Holds if this instruction is the return indirection for `this`.
547+ */
548+ final predicate isThisIndirection ( ) { var instanceof IRThisVariable }
544549}
545550
546551class CopyInstruction extends Instruction {
Original file line number Diff line number Diff line change @@ -541,6 +541,11 @@ class ReturnIndirectionInstruction extends VariableInstruction {
541541 * function.
542542 */
543543 final Language:: Parameter getParameter ( ) { result = var .( IRUserVariable ) .getVariable ( ) }
544+
545+ /**
546+ * Holds if this instruction is the return indirection for `this`.
547+ */
548+ final predicate isThisIndirection ( ) { var instanceof IRThisVariable }
544549}
545550
546551class CopyInstruction extends Instruction {
Original file line number Diff line number Diff line change @@ -541,6 +541,11 @@ class ReturnIndirectionInstruction extends VariableInstruction {
541541 * function.
542542 */
543543 final Language:: Parameter getParameter ( ) { result = var .( IRUserVariable ) .getVariable ( ) }
544+
545+ /**
546+ * Holds if this instruction is the return indirection for `this`.
547+ */
548+ final predicate isThisIndirection ( ) { var instanceof IRThisVariable }
544549}
545550
546551class CopyInstruction extends Instruction {
Original file line number Diff line number Diff line change @@ -541,6 +541,11 @@ class ReturnIndirectionInstruction extends VariableInstruction {
541541 * function.
542542 */
543543 final Language:: Parameter getParameter ( ) { result = var .( IRUserVariable ) .getVariable ( ) }
544+
545+ /**
546+ * Holds if this instruction is the return indirection for `this`.
547+ */
548+ final predicate isThisIndirection ( ) { var instanceof IRThisVariable }
544549}
545550
546551class CopyInstruction extends Instruction {
You can’t perform that action at this time.
0 commit comments