X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fproc_cloning.c;h=f63ae1447715a0cadd27217868d4d0e8d4300b7c;hb=b27ae245166bb695bc4e418ff416d91bc37d0f28;hp=76674391ca65380c13da727dfd84b1494f6786b9;hpb=1aae36757782e8c1d016d6bff9e5cdbaac1bc17d;p=libfirm diff --git a/ir/opt/proc_cloning.c b/ir/opt/proc_cloning.c index 76674391c..f63ae1447 100644 --- a/ir/opt/proc_cloning.c +++ b/ir/opt/proc_cloning.c @@ -132,9 +132,6 @@ static void process_call(ir_node *call, ir_entity *callee, q_set *hmap) * magic */ mtp = get_Call_type(call); - if (get_method_variadicity(mtp) != variadicity_non_variadic) { - n_params = get_method_first_variadic_param_index(mtp) - 1; - } /* In this for loop we collect the calls, that have an constant parameter. */ @@ -314,7 +311,7 @@ static ir_node *get_irg_arg(ir_graph *irg, size_t pos) /* Search the argument with the number pos.*/ for (i = get_irn_n_outs(irg_args) - 1; i >= 0; --i) { ir_node *proj = get_irn_out(irg_args, i); - if (pos == get_Proj_proj(proj)) { + if ((int)pos == get_Proj_proj(proj)) { if (arg) { /* * More than one arg node found: