From 2810af307d38fed79dc2b4820f8baccae2c9fe22 Mon Sep 17 00:00:00 2001 From: Daniel Grund Date: Mon, 20 Feb 2006 11:10:24 +0000 Subject: [PATCH] Bugfix --- ir/be/bespillbelady.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ir/be/bespillbelady.c b/ir/be/bespillbelady.c index f018d232d..7c8c768c9 100644 --- a/ir/be/bespillbelady.c +++ b/ir/be/bespillbelady.c @@ -73,7 +73,6 @@ typedef struct _belady_env_t { struct _workset_t { belady_env_t *bel; -// int i; /**< used for iteration TODO remove this form the struct */ int len; /**< current length */ loc_t vals[1]; /**< inlined array of the values/distances in this working set */ }; @@ -483,7 +482,7 @@ static void belady(ir_node *blk, void *env) { static void fix_block_borders(ir_node *blk, void *env) { workset_t *wsb; belady_env_t *bel = env; - int i, max, iter; + int i, max, iter, iter2; DBG((dbg, DBG_FIX, "\n")); DBG((dbg, DBG_FIX, "Fixing %+F\n", blk)); @@ -508,7 +507,7 @@ static void fix_block_borders(ir_node *blk, void *env) { continue; /* check if irnb is in a register at end of pred */ - workset_foreach(wsp, irnp, iter) + workset_foreach(wsp, irnp, iter2) if (irnb == irnp) goto next_value; -- 2.20.1