From: Jason Ekstrand Date: Wed, 29 Oct 2014 21:16:39 +0000 (-0700) Subject: nir/foreach_block: Return false if the callback on the last block fails X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07556442a7f82d44cbd2e725efd475efcd8a437c;p=mesa.git nir/foreach_block: Return false if the callback on the last block fails Reviewed-by: Connor Abbott --- diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index 25e71c74a3d..68c8b7516a1 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -1660,9 +1660,7 @@ nir_foreach_block(nir_function_impl *impl, nir_foreach_block_cb cb, void *state) return false; } - cb(impl->end_block, state); - - return true; + return cb(impl->end_block, state); } static bool