nir/lower_returns: Fix a bug in loop lowering
This commit is contained in:
parent
7aaed91581
commit
763176a3e2
|
@ -160,7 +160,7 @@ lower_returns_in_block(nir_block *block, struct lower_returns_state *state)
|
|||
|
||||
if (state->loop) {
|
||||
/* We're in a loop. Make the return a break. */
|
||||
jump->type = nir_jump_return;
|
||||
jump->type = nir_jump_break;
|
||||
} else {
|
||||
/* Not in a loop. Just delete the return; we'll deal with
|
||||
* predicating later.
|
||||
|
|
Loading…
Reference in New Issue