X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Ftailrec.c;h=11e9088dd317d158ce85d903760390a895d9a5e0;hb=c7dc950ac0cdd7d24acffb798b5867d0db5dd7c8;hp=a5e493884077c7d33ecd89d66c828de9bae207d7;hpb=36332e717eebd9b98603a99ea24e390a1d2aa3be;p=libfirm diff --git a/ir/opt/tailrec.c b/ir/opt/tailrec.c index a5e493884..11e9088dd 100644 --- a/ir/opt/tailrec.c +++ b/ir/opt/tailrec.c @@ -263,10 +263,7 @@ static void do_opt_tail_rec(ir_graph *irg, tr_env *env) { * ok, we are here, so we have build and collected all needed Phi's * now exchange all Projs into links to Phi */ - for (p = data.proj_m; p; p = n) { - n = get_irn_link(p); - exchange(p, phis[0]); - } + exchange(data.proj_m, phis[0]); for (p = data.proj_data; p; p = n) { long proj = get_Proj_proj(p);