summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-09-11 12:18:22 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-09-11 12:18:22 +0200
commitbba6f981d5fa2008123df7bbae20008904669cc5 (patch)
treec2b2bd48eb229a936ab86e0ad51e65ea4a588a4b /ir/be/beuses.c
parent814c866a0ab0d46bac3cfd448bb5910c631ea1bc (diff)
Prevent beuses from choking on basic blocks without control flow successors.
[r21837]
Diffstat (limited to 'ir/be/beuses.c')
-rw-r--r--ir/be/beuses.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ir/be/beuses.c b/ir/be/beuses.c
index b3261d3..dcef874 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);