X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fproc_cloning.c;h=06d7a9c8482175c250f607f6f7e93b7c162f13e8;hb=762b472fc81c73cf7a1b0041b8cd286b7206d79d;hp=119ba7081770b7fd273d822e5302f4444f40989f;hpb=1a3b7d363474ab544c13093a2f0b578718d37c7a;p=libfirm diff --git a/ir/opt/proc_cloning.c b/ir/opt/proc_cloning.c index 119ba7081..06d7a9c84 100644 --- a/ir/opt/proc_cloning.c +++ b/ir/opt/proc_cloning.c @@ -120,18 +120,17 @@ static void kill_entry(entry_t *entry) */ static void process_call(ir_node *call, ir_entity *callee, q_set *hmap) { - ir_type *mtp; entry_t *key, *entry; ir_node *call_param; size_t i, n_params; n_params = get_Call_n_params(call); - /* Beware: we cannot clone variadic parameters as well as the + /* TODO + * Beware: we cannot clone variadic parameters as well as the * last non-variadic one, which might be needed for the va_start() * magic */ - mtp = get_Call_type(call); /* In this for loop we collect the calls, that have an constant parameter. */ @@ -311,7 +310,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: @@ -412,7 +411,6 @@ static ir_entity *clone_method(const quadruple_t *q) { ir_entity *new_entity; ident *clone_ident; - symconst_symbol sym; /* A counter for the clones.*/ static size_t nr = 0; @@ -433,9 +431,6 @@ static ir_entity *clone_method(const quadruple_t *q) /* We need now a new ir_graph for our clone method. */ create_clone_proc_irg(new_entity, q); - /* We must set the atomic value of our "new_entity". */ - sym.entity_p = new_entity; - /* The "new_entity" don't have this information. */ new_entity->attr.mtd_attr.param_access = NULL; new_entity->attr.mtd_attr.param_weight = NULL;