indentation fixed
[libfirm] / ir / ana / irlivechk.c
index b19f782..a21a4ea 100644 (file)
@@ -323,7 +323,6 @@ void lv_chk_free(lv_chk_t *lv)
 unsigned lv_chk_bl_in_mask(const lv_chk_t *lv, const ir_node *bl, const ir_node *var)
 {
        stat_ev_cnt_decl(uses);
-       stat_ev_cnt_decl(iter);
 
        ir_node *def_bl;
        const ir_edge_t *edge;
@@ -404,7 +403,6 @@ end:
 unsigned lv_chk_bl_end_mask(const lv_chk_t *lv, const ir_node *bl, const ir_node *var)
 {
        stat_ev_cnt_decl(uses);
-       stat_ev_cnt_decl(iter);
 
        ir_node *def_bl;
        const ir_edge_t *edge;
@@ -609,8 +607,9 @@ unsigned lv_chk_bl_xxx(const lv_chk_t *lv, const ir_node *bl, const ir_node *var
                                res |= mask;
 
                        bi = get_block_info(lv, use_bl);
-                       bitset_set(uses, bi->id);
 
+                       if (bi)
+                               bitset_set(uses, bi->id);
                }
 
                /* get the dominance range which really matters. all uses outside