X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Ftailrec.c;h=371219315e148606ef753cdaa0b1e72a95ac8bc3;hb=762b472fc81c73cf7a1b0041b8cd286b7206d79d;hp=fc580fbf09e128810bdebdeaa740c640471bb9a4;hpb=d304e6e0053ecf1de3f541121ee70d7542bf9f84;p=libfirm diff --git a/ir/opt/tailrec.c b/ir/opt/tailrec.c index fc580fbf0..371219315 100644 --- a/ir/opt/tailrec.c +++ b/ir/opt/tailrec.c @@ -228,7 +228,6 @@ static void do_opt_tail_rec(ir_graph *irg, tr_env *env) if (n_params > 0) { ir_node *calls; ir_node *args; - ir_node *args_bl; NEW_ARR_A(ir_node **, call_params, env->n_tail_calls); @@ -241,7 +240,6 @@ static void do_opt_tail_rec(ir_graph *irg, tr_env *env) /* build new Proj's and Phi's */ args = get_irg_args(irg); - args_bl = get_nodes_block(args); for (i = 0; i < n_params; ++i) { ir_mode *mode = get_type_mode(get_method_param_type(method_tp, i)); @@ -339,7 +337,7 @@ static void do_opt_tail_rec(ir_graph *irg, tr_env *env) /* create a new tuple for the return values */ tuple = new_r_Tuple(block, env->n_ress, in); - turn_into_tuple(call, pn_Call_max); + turn_into_tuple(call, pn_Call_max+1); set_Tuple_pred(call, pn_Call_M, mem); set_Tuple_pred(call, pn_Call_X_regular, jmp); set_Tuple_pred(call, pn_Call_X_except, new_r_Bad(irg, mode_X));