From: Michael Beck Date: Fri, 4 Apr 2008 18:49:18 +0000 (+0000) Subject: BugFix: store the weigths to the right location X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=043afb3f2a9e20b5c1827007b85a078abd91ef84;p=libfirm BugFix: store the weigths to the right location [r19135] --- diff --git a/ir/opt/opt_inline.c b/ir/opt/opt_inline.c index ed76d7da1..d7ed5e8f1 100644 --- a/ir/opt/opt_inline.c +++ b/ir/opt/opt_inline.c @@ -1693,7 +1693,7 @@ static void analyze_irg_local_weights(inline_irg_env *env, ir_graph *irg) { for (i = get_irn_n_outs(irg_args) - 1; i >= 0; --i) { arg = get_irn_out(irg_args, i); proj_nr = get_Proj_proj(arg); - ent->attr.mtd_attr.param_weight[proj_nr] = calc_method_local_weight(arg); + env->local_weights[proj_nr] = calc_method_local_weight(arg); } }