summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belive.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-09 10:44:45 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-09 10:45:18 +0100
commitb5dcbce3d03c1ef273a5d8b07b0c82f7243363a9 (patch)
tree370194bc09aa859ede0257a3268b0ae3ea9423db /ir/be/belive.h
parent104924b4e45783bacb540365e8597764df540591 (diff)
belive: Assert that the liveness sets do not contain mode_T nodes.
Diffstat (limited to 'ir/be/belive.h')
-rw-r--r--ir/be/belive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/be/belive.h b/ir/be/belive.h
index 40bf87b..b980ec8 100644
--- a/ir/be/belive.h
+++ b/ir/be/belive.h
@@ -224,6 +224,7 @@ static inline ir_node *be_lv_iteration_next(lv_iterator_t *iterator,
{
while (iterator->i != 0) {
const be_lv_info_t *info = iterator->info + iterator->i--;
+ assert(get_irn_mode(info->node.node) != mode_T);
if (info->node.flags & flags)
return info->node.node;
}
@@ -236,6 +237,7 @@ static inline ir_node *be_lv_iteration_cls_next(lv_iterator_t *iterator,
{
while (iterator->i != 0) {
const be_lv_info_t *info = iterator->info + iterator->i--;
+ assert(get_irn_mode(info->node.node) != mode_T);
if (!(info->node.flags & flags))
continue;