summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2016-04-12 15:16:14 -0400
committerJason Ekstrand <[email protected]>2016-04-28 15:52:17 -0700
commita471c161b1cd7a38e91585b3737b1c34cd2e0110 (patch)
treebaaa7c0cc980554b42fd78956c92dd581b13d510 /src/compiler/nir
parentdb3517777254fe82413d3bf5b70a328a37222c8b (diff)
nir/nir_worklist: fixup for new foreach_block()
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_worklist.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/compiler/nir/nir_worklist.c b/src/compiler/nir/nir_worklist.c
index d1ecdc4d663..3ae2770288b 100644
--- a/src/compiler/nir/nir_worklist.c
+++ b/src/compiler/nir/nir_worklist.c
@@ -47,18 +47,12 @@ nir_block_worklist_fini(nir_block_worklist *w)
ralloc_free(w->blocks);
}
-static bool
-worklist_add_block(nir_block *block, void *w)
-{
- nir_block_worklist_push_tail(w, block);
-
- return true;
-}
-
void
nir_block_worklist_add_all(nir_block_worklist *w, nir_function_impl *impl)
{
- nir_foreach_block_call(impl, worklist_add_block, w);
+ nir_foreach_block(block, impl) {
+ nir_block_worklist_push_tail(w, block);
+ }
}
void