Skip to content

Commit 45753e5

Browse files
committed
C++: Fully lock down the join order correctly.
1 parent c1af8b9 commit 45753e5

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
@@ -154,7 +154,7 @@ library class SSAHelper extends int {
154154
*/
155155
private predicate frontier_phi_node(StackVariable v, BasicBlock b) {
156156
exists(BasicBlock x |
157-
dominanceFrontier(x, pragma[only_bind_into](b)) and ssa_defn_rec(pragma[only_bind_into](v), x)
157+
dominanceFrontier(x, b) and ssa_defn_rec(pragma[only_bind_into](v), pragma[only_bind_into](x))
158158
) and
159159
/* We can also eliminate those nodes where the variable is not live on any incoming edge */
160160
live_at_start_of_bb(pragma[only_bind_into](v), b)

0 commit comments

Comments
 (0)