summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-10-29 14:16:39 -0700
committerJason Ekstrand <[email protected]>2015-01-15 07:19:00 -0800
commit07556442a7f82d44cbd2e725efd475efcd8a437c (patch)
tree3ae46a31d35e65529d1dc92ccfa81a8f5220229d /src/glsl/nir/nir.c
parent49911cf4dbf85e9c20c8069cbc0aaa6deb757df1 (diff)
nir/foreach_block: Return false if the callback on the last block fails
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.c')
-rw-r--r--src/glsl/nir/nir.c4
1 files changed, 1 insertions, 3 deletions
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