diff options
Diffstat (limited to 'src/compiler/nir/nir_opt_dead_cf.c')
-rw-r--r-- | src/compiler/nir/nir_opt_dead_cf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_dead_cf.c b/src/compiler/nir/nir_opt_dead_cf.c index ca73e50061b..4b62e55d030 100644 --- a/src/compiler/nir/nir_opt_dead_cf.c +++ b/src/compiler/nir/nir_opt_dead_cf.c @@ -97,7 +97,7 @@ opt_constant_if(nir_if *if_stmt, bool condition) nir_phi_instr *phi = nir_instr_as_phi(instr); nir_ssa_def *def = NULL; - nir_foreach_phi_src(phi, phi_src) { + nir_foreach_phi_src(phi_src, phi) { if (phi_src->pred != last_block) continue; |