summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_remove_phis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_opt_remove_phis.c')
-rw-r--r--src/compiler/nir/nir_opt_remove_phis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_remove_phis.c b/src/compiler/nir/nir_opt_remove_phis.c
index 5234c0f..5d015c2 100644
--- a/src/compiler/nir/nir_opt_remove_phis.c
+++ b/src/compiler/nir/nir_opt_remove_phis.c
@@ -56,7 +56,7 @@ remove_phis_block(nir_block *block)
nir_ssa_def *def = NULL;
bool srcs_same = true;
- nir_foreach_phi_src(phi, src) {
+ nir_foreach_phi_src(src, phi) {
assert(src->src.is_ssa);
/* For phi nodes at the beginning of loops, we may encounter some