summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-03-10 18:25:21 +0100
committerMatthias Braun <matze@braunis.de>2010-03-10 18:25:21 +0100
commit7c36344d22a7c306a4e216f135c974bdb9f6b943 (patch)
treecf08cc3e447a6b85337dd2e58ceb70006eaa4955 /ir/be/beuses.c
parentea75e9d38674b468f602a0699fb64b9c01254797 (diff)
- fix most of the -Wunreachable-code and -Wlogical-op warnings
- rework ir_phase API (sorry for mixing these 2 things into 1 commit) [r27285]
Diffstat (limited to 'ir/be/beuses.c')
-rw-r--r--ir/be/beuses.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ir/be/beuses.c b/ir/be/beuses.c
index 2ad2399..5b9375f 100644
--- a/ir/be/beuses.c
+++ b/ir/be/beuses.c
@@ -121,7 +121,6 @@ static int be_is_phi_argument(const ir_node *block, const ir_node *def)
{
ir_node *node;
ir_node *succ_block = NULL;
- const ir_edge_t *edge;
int arity, i;
#if 1
@@ -131,10 +130,7 @@ static int be_is_phi_argument(const ir_node *block, const ir_node *def)
#endif
return 0;
- foreach_block_succ(block, edge) {
- succ_block = get_edge_src_irn(edge);
- break;
- }
+ succ_block = get_first_block_succ(block);
arity = get_Block_n_cfgpreds(succ_block);
if (arity <= 1)