diff options
author | Jason Ekstrand <[email protected]> | 2016-10-05 19:56:54 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-10-06 09:16:39 -0700 |
commit | ae032e5ea61dac3c63d74056174939e5ec091629 (patch) | |
tree | 86684d642726e12aff0914b62a74f8c4c30321b1 /src/compiler/nir/nir_lower_to_source_mods.c | |
parent | 2ed17d46de045404042f13c6591895a1cf31b167 (diff) |
nir: Remove some no longer needed asserts
Now that the NIR casting functions have type assertions, we have a bunch of
assertions that aren't needed anymore.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_lower_to_source_mods.c')
-rw-r--r-- | src/compiler/nir/nir_lower_to_source_mods.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_lower_to_source_mods.c b/src/compiler/nir/nir_lower_to_source_mods.c index 7a1507ced5f..69502d9b54c 100644 --- a/src/compiler/nir/nir_lower_to_source_mods.c +++ b/src/compiler/nir/nir_lower_to_source_mods.c @@ -164,9 +164,7 @@ nir_lower_to_source_mods_block(nir_block *block) nir_foreach_use(child_src, &alu->dest.dest.ssa) { assert(child_src->is_ssa); - nir_instr *child = child_src->parent_instr; - assert(child->type == nir_instr_type_alu); - nir_alu_instr *child_alu = nir_instr_as_alu(child); + nir_alu_instr *child_alu = nir_instr_as_alu(child_src->parent_instr); child_alu->op = nir_op_fmov; child_alu->dest.saturate = false; |