File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
cpp/ql/lib/semmle/code/cpp/controlflow Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,11 @@ library class SSAHelper extends int {
153
153
* Modern Compiler Implementation by Andrew Appel.
154
154
*/
155
155
private predicate frontier_phi_node ( StackVariable v , BasicBlock b ) {
156
- exists ( BasicBlock x | dominanceFrontier ( pragma [ only_bind_into ] ( x ) , b ) and ssa_defn_rec ( v , x ) ) and
156
+ exists ( BasicBlock x |
157
+ dominanceFrontier ( x , pragma [ only_bind_into ] ( b ) ) and ssa_defn_rec ( pragma [ only_bind_into ] ( v ) , x )
158
+ ) and
157
159
/* We can also eliminate those nodes where the variable is not live on any incoming edge */
158
- live_at_start_of_bb ( v , b )
160
+ live_at_start_of_bb ( pragma [ only_bind_into ] ( v ) , b )
159
161
}
160
162
161
163
private predicate ssa_defn_rec ( StackVariable v , BasicBlock b ) {
You can’t perform that action at this time.
0 commit comments