projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2812e5d
)
SQUASH: Add an assert
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 29 Oct 2014 21:15:13 +0000
(14:15 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:18:58 +0000
(07:18 -0800)
src/glsl/nir/nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir.c
b/src/glsl/nir/nir.c
index 556d5e31ad8eb75eed84e375913d1b66633df077..3a17d382a9bf5c00886ae0e358e8b4f63f7936da 100644
(file)
--- 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);
}