Skip to content

Commit d840796

Browse files
committed
C++: Fix join-order in 'phi_node' predicate.
1 parent b49ca6a commit d840796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/controlflow/SSAUtils.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ library class SSAHelper extends int {
153153
* Modern Compiler Implementation by Andrew Appel.
154154
*/
155155
private predicate frontier_phi_node(StackVariable v, BasicBlock b) {
156-
exists(BasicBlock x | dominanceFrontier(x, b) and ssa_defn_rec(v, x)) and
156+
exists(BasicBlock x | dominanceFrontier(pragma[only_bind_into](x), b) and ssa_defn_rec(v, x)) and
157157
/* We can also eliminate those nodes where the variable is not live on any incoming edge */
158158
live_at_start_of_bb(v, b)
159159
}

0 commit comments

Comments
 (0)