X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fproc_cloning.c;h=1c3cf881fe70f62180d2b5a510d9fde938e0739d;hb=151f1b110fe2c1ead4ae8dd66a2521f35c324946;hp=037bbe2f8ecad40c88a31962f294ed4f3514788e;hpb=dbd7da6aa846ae8eaeb852c5a139d56409551c78;p=libfirm diff --git a/ir/opt/proc_cloning.c b/ir/opt/proc_cloning.c index 037bbe2f8..1c3cf881f 100644 --- a/ir/opt/proc_cloning.c +++ b/ir/opt/proc_cloning.c @@ -341,7 +341,7 @@ static void create_clone_proc_irg(ir_entity *ent, quadruple_t *q) { arg = get_irg_arg(get_entity_irg(q->ent), q->pos); /* we will replace the argument in position "q->pos" by this constant. */ const_arg = new_r_Const_type( - clone_irg, get_nodes_block(arg), get_irn_mode(arg), q->tv, + clone_irg, q->tv, get_method_param_type(get_entity_type(q->ent), q->pos)); /* args copy in the cloned graph will be the const. */