diff options
author | Jason Ekstrand <[email protected]> | 2015-01-20 16:30:14 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-20 16:53:29 -0800 |
commit | 194f6235b32cd0c54547a3913e463cf691d011d6 (patch) | |
tree | d93c654666139b58961430e80433b8342b88a86d /src/glsl/nir/nir.c | |
parent | 169d7e5cb1cce73d39e40717d5f49ac30b626d1b (diff) |
nir: Add a nir_foreach_phi_src helper macro
Reviewed-by: Connor Abbott <cwabbott02gmail.com>
Diffstat (limited to 'src/glsl/nir/nir.c')
-rw-r--r-- | src/glsl/nir/nir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index 81dec1c54c6..89e21fddeb9 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -731,7 +731,7 @@ rewrite_phi_preds(nir_block *block, nir_block *old_pred, nir_block *new_pred) break; nir_phi_instr *phi = nir_instr_as_phi(instr); - foreach_list_typed_safe(nir_phi_src, src, node, &phi->srcs) { + nir_foreach_phi_src(phi, src) { if (src->pred == old_pred) { src->pred = new_pred; break; @@ -1585,7 +1585,7 @@ visit_load_const_src(nir_load_const_instr *instr, nir_foreach_src_cb cb, static bool visit_phi_src(nir_phi_instr *instr, nir_foreach_src_cb cb, void *state) { - foreach_list_typed(nir_phi_src, src, node, &instr->srcs) { + nir_foreach_phi_src(instr, src) { if (!visit_src(&src->src, cb, state)) return false; } |