freedreno/ir3: fix fallout from new block iterators

Since this is potentially modifying the block structure of the shader,
it needs the _safe() version of the iterator.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Rob Clark 2016-05-09 13:51:18 -04:00
parent fe102f7677
commit 57763ee735

View file

@ -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);
}