summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belive.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-12-30 17:03:04 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-12-30 23:52:46 +0100
commit2a1612e6a84aa8ca2117536137864f3b4152f3d0 (patch)
tree7355422c83cccfcc0252a68470b3146d3f0bd3c2 /ir/be/belive.h
parent8dedb02351146460269237cf35e32ab3a8eb14a9 (diff)
belive: Assert that a live set is valid when making an iterator for it.
Diffstat (limited to 'ir/be/belive.h')
-rw-r--r--ir/be/belive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/be/belive.h b/ir/be/belive.h
index 4cfe56f..40bf87b 100644
--- a/ir/be/belive.h
+++ b/ir/be/belive.h
@@ -212,6 +212,7 @@ typedef struct lv_iterator_t
static inline lv_iterator_t be_lv_iteration_begin(const be_lv_t *lv,
const ir_node *block)
{
+ assert(lv->sets_valid);
lv_iterator_t res;
res.info = ir_nodehashmap_get(be_lv_info_t, &lv->map, block);
res.i = res.info != NULL ? res.info[0].head.n_members : 0;