cleanup ia32 code (use private linkage where necessary, no need for a custom unique_id)
[libfirm] / ir / be / beuses.c
index 2ad2399..5b9375f 100644 (file)
@@ -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)