summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_live_variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir/nir_live_variables.c')
-rw-r--r--src/glsl/nir/nir_live_variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_live_variables.c b/src/glsl/nir/nir_live_variables.c
index f110c5e47ab..7402dc0877e 100644
--- a/src/glsl/nir/nir_live_variables.c
+++ b/src/glsl/nir/nir_live_variables.c
@@ -147,7 +147,7 @@ propagate_across_edge(nir_block *pred, nir_block *succ,
break;
nir_phi_instr *phi = nir_instr_as_phi(instr);
- foreach_list_typed(nir_phi_src, src, node, &phi->srcs) {
+ nir_foreach_phi_src(phi, src) {
if (src->pred == pred) {
set_src_live(&src->src, live);
break;