diff options
author | Jason Ekstrand <[email protected]> | 2016-12-19 10:46:04 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-12-22 16:27:19 -0800 |
commit | 993e9195d42763d43f9f7453f77ac5b667f799e3 (patch) | |
tree | 48dbafee1743999e8b7a3bef7bfe45ad77e2c223 /src/compiler | |
parent | 3321eb4c368e673c8d9561ea126a4672825828b1 (diff) |
nir: Correctly handle blocks in cf_node_cf_tree_next
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 2c3531cc2dd..885616e99c3 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1753,7 +1753,7 @@ nir_block *nir_cf_node_cf_tree_last(nir_cf_node *node) nir_block *nir_cf_node_cf_tree_next(nir_cf_node *node) { if (node->type == nir_cf_node_block) - return nir_cf_node_cf_tree_first(nir_cf_node_next(node)); + return nir_block_cf_tree_next(nir_cf_node_as_block(node)); else if (node->type == nir_cf_node_function) return NULL; else |