From: Jason Ekstrand Date: Wed, 29 Oct 2014 21:15:13 +0000 (-0700) Subject: SQUASH: Add an assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b4c86058063888813fca185633cd5746ac2321c;p=mesa.git SQUASH: Add an assert --- 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); }