projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9da9adc
)
i965/cfg: Assert that cur_do/while/if pointers are non-NULL.
author
Matt Turner
<mattst88@gmail.com>
Sat, 11 Jul 2015 02:49:49 +0000
(19:49 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Wed, 29 Jul 2015 16:20:07 +0000
(09:20 -0700)
More.. like in commit
4d93a07c
.
src/mesa/drivers/dri/i965/brw_cfg.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_cfg.cpp
b/src/mesa/drivers/dri/i965/brw_cfg.cpp
index f1f230e3751b5b73f9f34baa831b75791e769921..91d53eff5a709cfc971a84ffbafe4d6c7284d320 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_cfg.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_cfg.cpp
@@
-208,6
+208,7
@@
cfg_t::cfg_t(exec_list *instructions)
cur_else = cur;
next = new_block();
+ assert(cur_if != NULL);
cur_if->add_successor(mem_ctx, next);
set_next_block(&cur, next, ip);
@@
-274,6
+275,7
@@
cfg_t::cfg_t(exec_list *instructions)
inst->exec_node::remove();
cur->instructions.push_tail(inst);
+ assert(cur_do != NULL);
cur->add_successor(mem_ctx, cur_do);
next = new_block();
@@
-287,6
+289,7
@@
cfg_t::cfg_t(exec_list *instructions)
inst->exec_node::remove();
cur->instructions.push_tail(inst);
+ assert(cur_while != NULL);
cur->add_successor(mem_ctx, cur_while);
next = new_block();