nir/lower_returns: Fix a bug in loop lowering

This commit is contained in:
Jason Ekstrand 2015-12-28 13:22:09 -08:00
parent 7aaed91581
commit 763176a3e2
1 changed files with 1 additions and 1 deletions

View File

@ -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.