From 8b4c86058063888813fca185633cd5746ac2321c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 29 Oct 2014 14:15:13 -0700 Subject: [PATCH] SQUASH: Add an assert --- src/glsl/nir/nir.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.30.2