Commit bba6f981 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Prevent beuses from choking on basic blocks without control flow successors.

parent 814c866a
......@@ -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)
if (get_irn_n_edges_kind(block, EDGE_KIND_BLOCK) != 1)
return 0;
foreach_block_succ(block, edge) {
succ_block = get_edge_src_irn(edge);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment