From: Christoph Mallon Date: Thu, 11 Sep 2008 10:18:22 +0000 (+0000) Subject: Prevent beuses from choking on basic blocks without control flow successors. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=bba6f981d5fa2008123df7bbae20008904669cc5;p=libfirm Prevent beuses from choking on basic blocks without control flow successors. [r21837] --- diff --git a/ir/be/beuses.c b/ir/be/beuses.c index b3261d373..dcef87463 100644 --- a/ir/be/beuses.c +++ b/ir/be/beuses.c @@ -126,10 +126,12 @@ static int be_is_phi_argument(const ir_node *block, const ir_node *def) const ir_edge_t *edge; int arity, i; -#if 0 - if(get_irn_n_edges_kind(block, EDGE_KIND_BLOCK) > 1) - return 0; +#if 1 + if (get_irn_n_edges_kind(block, EDGE_KIND_BLOCK) < 1) +#else + if (get_irn_n_edges_kind(block, EDGE_KIND_BLOCK) != 1) #endif + return 0; foreach_block_succ(block, edge) { succ_block = get_edge_src_irn(edge);