Skip to content

Commit 063e5d3

Browse files
committed
C++: Remove redundant SSA branch after IR fix
1 parent 3cd9938 commit 063e5d3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -688,14 +688,9 @@ private module Cached {
688688
conversionFlow(mid, instr, false, _)
689689
)
690690
or
691-
exists(int ind0 |
692-
exists(Operand address |
693-
isDereference(operand.getDef(), address, _) and
694-
isUseImpl(address, base, ind0)
695-
)
696-
or
697-
isUseImpl(operand.getDef().(InitializeParameterInstruction).getAnOperand(), base, ind0)
698-
|
691+
exists(int ind0, Operand address |
692+
isDereference(operand.getDef(), address, _) and
693+
isUseImpl(address, base, ind0) and
699694
ind0 = ind - 1
700695
)
701696
}

0 commit comments

Comments
 (0)