typo fixed
[libfirm] / ir / be / belive.c
index 505546f..07c2ef6 100644 (file)
@@ -667,6 +667,7 @@ int be_check_dominance(ir_graph *irg)
 {
        int problem_found = 0;
 
+       assure_doms(irg);
        irg_walk_graph(irg, dom_check, NULL, &problem_found);
 
        return !problem_found;
@@ -675,10 +676,10 @@ int be_check_dominance(ir_graph *irg)
 pset *be_liveness_transfer(const arch_env_t *arch_env, const arch_register_class_t *cls, ir_node *irn, pset *live)
 {
        int i, n;
-       ir_node *x;
        FIRM_DBG_REGISTER(firm_dbg_module_t *dbg, DBG_MODULE);
 
        DEBUG_ONLY(
+               const ir_node *x;
                DBG((dbg, LEVEL_1, "%+F\n", irn));
                for(x = pset_first(live); x; x = pset_next(live))
                        DBG((dbg, LEVEL_1, "\tlive: %+F\n", x));