mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
nir_lower_returns: Mark assert-only var as ASSERTED
Fixes: 5d238c0c ("nir_lower_returns: Optimize phis before beginning the pass")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23634>
This commit is contained in:
parent
13df91d7d7
commit
83f741124b
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ lower_returns_in_if(nir_if *if_stmt, struct lower_returns_state *state)
|
|||
* predecessor, and should've been removed by the opt_remove_phis before
|
||||
* beginning this pass.
|
||||
*/
|
||||
nir_block *succ_block = nir_after_cf_node(&if_stmt->cf_node).block;
|
||||
ASSERTED nir_block *succ_block = nir_after_cf_node(&if_stmt->cf_node).block;
|
||||
assert(nir_block_first_instr(succ_block) == NULL ||
|
||||
nir_block_first_instr(succ_block)->type != nir_instr_type_phi);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue