Skip to content

Commit c567197

Browse files
committed
C++: Simplify expression
1 parent 063e5d3 commit c567197

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaImplCommon.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,9 @@ private module Cached {
688688
conversionFlow(mid, instr, false, _)
689689
)
690690
or
691-
exists(int ind0, Operand address |
691+
exists(Operand address |
692692
isDereference(operand.getDef(), address, _) and
693-
isUseImpl(address, base, ind0) and
694-
ind0 = ind - 1
693+
isUseImpl(address, base, ind - 1)
695694
)
696695
}
697696

0 commit comments

Comments
 (0)