summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c b/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c
index 262f4907cab..6e1395c9001 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c
@@ -304,7 +304,7 @@ lower_if_else_impl(nir_function_impl *impl)
nir_builder_init(&b, impl);
bool progress = false;
- nir_foreach_block(block, impl) {
+ nir_foreach_block_safe(block, impl) {
progress |= lower_if_else_block(block, &b, mem_ctx);
}