summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2015-07-21 19:54:20 -0700
committerKenneth Graunke <[email protected]>2015-08-24 13:31:41 -0700
commitf41e108d8bdd360caedd1497dc676c928c7f18a3 (patch)
tree0dd457b4d92c262227675ab45ebb771c600ddce2 /src
parent762ae436ea578651c9f8a50620196b5d744b8eee (diff)
nir: add nir_foreach_phi_src_safe()
Signed-off-by: Connor Abbott <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/nir/nir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 6a0ec44b018..d19a1907d47 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -1101,6 +1101,8 @@ typedef struct {
#define nir_foreach_phi_src(phi, entry) \
foreach_list_typed(nir_phi_src, entry, node, &(phi)->srcs)
+#define nir_foreach_phi_src_safe(phi, entry) \
+ foreach_list_typed_safe(nir_phi_src, entry, node, &(phi)->srcs)
typedef struct {
nir_instr instr;