SQUASH: Add an assert
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 29 Oct 2014 21:15:13 +0000 (14:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:18:58 +0000 (07:18 -0800)
src/glsl/nir/nir.c

index 556d5e31ad8eb75eed84e375913d1b66633df077..3a17d382a9bf5c00886ae0e358e8b4f63f7936da 100644 (file)
@@ -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);
    }