From: Jason Ekstrand Date: Mon, 28 Dec 2015 21:22:09 +0000 (-0800) Subject: nir/lower_returns: Fix a bug in loop lowering X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=763176a3e2166b2f1757582948e985d6bca9531c;p=mesa.git nir/lower_returns: Fix a bug in loop lowering --- diff --git a/src/glsl/nir/nir_lower_returns.c b/src/glsl/nir/nir_lower_returns.c index 178e454d737..dcdd14e2026 100644 --- a/src/glsl/nir/nir_lower_returns.c +++ b/src/glsl/nir/nir_lower_returns.c @@ -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.