X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeifg_std.c;h=8a219c5cf5f86bd8a822dfac73be1996215ba4d1;hb=6e3e499d6c68aee0c6a9ada6a99f16c4f6f8445b;hp=8feeefada42225bb98dab1c96579bc6984ed6442;hpb=23b71abac8014aa6bfee3b47648fdb8fe8687b8f;p=libfirm diff --git a/ir/be/beifg_std.c b/ir/be/beifg_std.c index 8feeefada..8a219c5cf 100644 --- a/ir/be/beifg_std.c +++ b/ir/be/beifg_std.c @@ -235,7 +235,7 @@ static INLINE int get_next_clique(cliques_iter_t *it) { int output_on_shrink = 0; struct list_head *head = get_block_border_head(it->cenv, it->blocks[it->blk]); - /* on entry to a new block set the first border ... + /* on entry to a new block set the first border ... */ if (!it->bor) it->bor = head->prev; @@ -284,7 +284,7 @@ static int ifg_std_cliques_begin(const void *self, void *iter, ir_node **buf) { const ifg_std_t *ifg = self; cliques_iter_t *it = iter; - ir_node *start_bl = get_irg_start_block(it->cenv->irg); + ir_node *start_bl = get_irg_start_block(ifg->env->irg); obstack_init(&it->ob); dom_tree_walk(start_bl, get_blocks_dom_order, NULL, it); @@ -342,7 +342,7 @@ static const be_ifg_impl_t ifg_std_impl = { be_ifg_t *be_ifg_std_new(const be_chordal_env_t *env) { - ifg_std_t *ifg = malloc(sizeof(*ifg)); + ifg_std_t *ifg = xmalloc(sizeof(*ifg)); ifg->impl = &ifg_std_impl; ifg->env = env;