File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -340,8 +340,7 @@ private predicate resultEscapesNonReturn(Instruction instr) {
340340
341341/** Holds if `operand` may (transitively) flow to an `AddressOperand` whose use is unmodeled. */
342342private predicate consumedAsAddressOperand ( Operand operand ) {
343- operand instanceof AddressOperand and
344- exists ( Instruction use | not use .isResultModeled ( ) )
343+ exists ( Instruction use | use = operand .( AddressOperand ) .getUse ( ) and not use .isResultModeled ( ) )
345344 or
346345 exists ( Operand address |
347346 consumedAsAddressOperand ( address ) and
Original file line number Diff line number Diff line change @@ -340,8 +340,7 @@ private predicate resultEscapesNonReturn(Instruction instr) {
340340
341341/** Holds if `operand` may (transitively) flow to an `AddressOperand` whose use is unmodeled. */
342342private predicate consumedAsAddressOperand ( Operand operand ) {
343- operand instanceof AddressOperand and
344- exists ( Instruction use | not use .isResultModeled ( ) )
343+ exists ( Instruction use | use = operand .( AddressOperand ) .getUse ( ) and not use .isResultModeled ( ) )
345344 or
346345 exists ( Operand address |
347346 consumedAsAddressOperand ( address ) and
You can’t perform that action at this time.
0 commit comments