Skip to content

Commit 7ec3162

Browse files
committed
C++: Sync identical files.
1 parent a5efe9f commit 7ec3162

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/AliasAnalysis.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ private predicate resultEscapesNonReturn(Instruction instr) {
338338
not instr.isResultModeled()
339339
}
340340

341-
/** Holds if `operand` may (transitively) flow to an `AddressOperand` whose use is unmodeled. */
341+
/** Holds if `operand` may (transitively) flow to an `AddressOperand`. */
342342
private predicate consumedAsAddressOperand(Operand operand) {
343-
exists(Instruction use | use = operand.(AddressOperand).getUse() and not use.isResultModeled())
343+
operand instanceof AddressOperand
344344
or
345345
exists(Operand address |
346346
consumedAsAddressOperand(address) and
@@ -350,7 +350,7 @@ private predicate consumedAsAddressOperand(Operand operand) {
350350

351351
/**
352352
* Holds if `operand` may originate from a base instruction of an allocation,
353-
* and that operand may transitively flow to an `AddressOperand` whose use is unmodeled.
353+
* and that operand may transitively flow to an `AddressOperand`.
354354
*/
355355
private predicate propagatedFromAllocationBase(Operand operand, Configuration::Allocation allocation) {
356356
consumedAsAddressOperand(operand) and

0 commit comments

Comments
 (0)