From: Sebastian Buchwald Date: Sat, 4 Oct 2008 19:15:35 +0000 (+0000) Subject: Bugfix: Update bucket_index if reordering node. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=74cbc1603b37a09f11bea82944926bf2fbed0ebf;p=libfirm Bugfix: Update bucket_index if reordering node. [r22482] --- diff --git a/heuristical.c b/heuristical.c index 9ad9b2969..c320764fd 100644 --- a/heuristical.c +++ b/heuristical.c @@ -232,6 +232,7 @@ static void reorder_node(pbqp_node *node) ARR_SHRINKLEN(node_buckets[old_arity], (int)old_bucket_len - 1); /* ..and add to new one. */ + node->bucket_index = ARR_LEN(node_buckets[arity]); ARR_APP1(pbqp_node *, node_buckets[arity], node); }