summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespillslots.c
diff options
context:
space:
mode:
authorManuel Mohr <manuel.mohr@kit.edu>2014-04-08 08:58:27 +0200
committerManuel Mohr <manuel.mohr@kit.edu>2014-04-08 08:58:27 +0200
commitde3af7c113c3b480423db0882e5a0717592786a8 (patch)
treec5455e82f27ee7b9d9e138b620c4120e3b0c830a /ir/be/bespillslots.c
parent556ae9e9185859176a30ca3eb9af0ba21d7dc58a (diff)
Fix warning in optimize build.
Diffstat (limited to 'ir/be/bespillslots.c')
-rw-r--r--ir/be/bespillslots.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ir/be/bespillslots.c b/ir/be/bespillslots.c
index a0f4202..d43f6d5 100644
--- a/ir/be/bespillslots.c
+++ b/ir/be/bespillslots.c
@@ -210,7 +210,6 @@ static spill_t *collect_spill(be_fec_env_t *env, ir_node *node, spillweb_t *web)
/* ignore obvious self-loops */
if (arg == node)
continue;
- spillweb_t *old_web = web;
spill_t *arg_spill = collect_spill(env, arg, web);
ir_node *block = get_nodes_block(arg);
@@ -220,6 +219,9 @@ static spill_t *collect_spill(be_fec_env_t *env, ir_node *node, spillweb_t *web)
affinty_edge->slot1 = spill->spillslot;
affinty_edge->slot2 = arg_spill->spillslot;
ARR_APP1(affinity_edge_t*, env->affinity_edges, affinty_edge);
+#ifndef NDEBUG
+ spillweb_t *old_web = web;
+#endif
web = arg_spill->web;
assert(web->merged_with == NULL);
assert(web == old_web || old_web == NULL