diff options
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/nir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index 556d5e31ad8..3a17d382a9b 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -833,6 +833,7 @@ handle_jump(nir_block *block) unlink_blocks(last_block, after_block); } } else { + assert(jump_instr->type == nir_jump_return); nir_function_impl *impl = nir_cf_node_get_function(&block->cf_node); link_blocks(block, impl->end_block, NULL); } |