diff options
author | Connor Abbott <[email protected]> | 2016-04-12 15:17:46 -0400 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-28 15:52:17 -0700 |
commit | 1f8c1006140cf755f35f4196bd703c4a586d7609 (patch) | |
tree | 2880fb2d27cfbee6d1b6aaea1eef7351e23d764c /src/compiler/nir | |
parent | a471c161b1cd7a38e91585b3737b1c34cd2e0110 (diff) |
nir/validate: fixup for new foreach_block()
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_validate.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c index 0555a0007cf..c7cef6a8095 100644 --- a/src/compiler/nir/nir_validate.c +++ b/src/compiler/nir/nir_validate.c @@ -957,15 +957,6 @@ postvalidate_ssa_def(nir_ssa_def *def, void *void_state) return true; } -static bool -postvalidate_ssa_defs_block(nir_block *block, void *state) -{ - nir_foreach_instr(block, instr) - nir_foreach_ssa_def(instr, postvalidate_ssa_def, state); - - return true; -} - static void validate_function_impl(nir_function_impl *impl, validate_state *state) { @@ -1025,7 +1016,10 @@ validate_function_impl(nir_function_impl *impl, validate_state *state) postvalidate_reg_decl(reg, state); } - nir_foreach_block_call(impl, postvalidate_ssa_defs_block, state); + nir_foreach_block(block, impl) { + nir_foreach_instr(block, instr) + nir_foreach_ssa_def(instr, postvalidate_ssa_def, state); + } } static void |