From 194f6235b32cd0c54547a3913e463cf691d011d6 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 20 Jan 2015 16:30:14 -0800 Subject: nir: Add a nir_foreach_phi_src helper macro Reviewed-by: Connor Abbott --- src/glsl/nir/nir_to_ssa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl/nir/nir_to_ssa.c') diff --git a/src/glsl/nir/nir_to_ssa.c b/src/glsl/nir/nir_to_ssa.c index 3e7521163f6..b9b1cff9cf2 100644 --- a/src/glsl/nir/nir_to_ssa.c +++ b/src/glsl/nir/nir_to_ssa.c @@ -386,7 +386,7 @@ rewrite_phi_sources(nir_block *block, nir_block *pred, rewrite_state *state) state->parent_instr = instr; - foreach_list_typed(nir_phi_src, src, node, &phi_instr->srcs) { + nir_foreach_phi_src(phi_instr, src) { if (src->pred == pred) { rewrite_use(&src->src, state); break; -- cgit v1.2.3