From: Michael Beck Date: Tue, 29 Jul 2008 19:55:51 +0000 (+0000) Subject: - BugFix: of by one error X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=fa6317a1d6c40bca9ea48907dc088bff877e6e96;p=libfirm - BugFix: of by one error [r20769] --- diff --git a/ir/opt/combo.c b/ir/opt/combo.c index c54c31d66..8d1214375 100644 --- a/ir/opt/combo.c +++ b/ir/opt/combo.c @@ -334,7 +334,7 @@ static void sort_irn_outs(node_t *node) { if (n_outs > 1) { qsort(&irn->out[1], n_outs, sizeof(irn->out[0]), cmp_def_use_edge); } - node->max_user_input = irn->out[n_outs + 1].pos; + node->max_user_input = irn->out[n_outs].pos; } /* sort_irn_outs */ /** @@ -438,7 +438,6 @@ static INLINE lattice_elem_t get_partition_type(const partition_t *X) { static node_t *create_partition_node(ir_node *irn, partition_t *part, environment_t *env) { /* create a partition node and place it in the partition */ node_t *node = obstack_alloc(&env->obst, sizeof(*node)); - ir_mode *mode = get_irn_mode(irn); INIT_LIST_HEAD(&node->node_list); INIT_LIST_HEAD(&node->cprop_list);