summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespilldaemel.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-13 10:12:55 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-13 10:12:55 +0100
commit1b9805188655599d297e3fd36fe4d20017b33263 (patch)
tree5813c878df4215a6f6857279bbee76b6a267376b /ir/be/bespilldaemel.c
parenta9132de4425fe5540d316e1a2c7fd37635464514 (diff)
Let be_foreach_definition() declare the value variable.
Diffstat (limited to 'ir/be/bespilldaemel.c')
-rw-r--r--ir/be/bespilldaemel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/bespilldaemel.c b/ir/be/bespilldaemel.c
index e3bfdbd..f25977c 100644
--- a/ir/be/bespilldaemel.c
+++ b/ir/be/bespilldaemel.c
@@ -140,9 +140,9 @@ static unsigned get_value_width(const ir_node *node)
*/
static void do_spilling(ir_nodeset_t *live_nodes, ir_node *node)
{
- size_t values_defined = 0;
- ir_node *value;
+ size_t values_defined = 0;
be_foreach_definition(node, cls, value,
+ (void)value;
assert(req_->width >= 1);
values_defined += req_->width;
);
@@ -228,7 +228,6 @@ static void remove_defs(ir_node *node, ir_nodeset_t *nodeset)
/* You must break out of your loop when hitting the first phi function. */
assert(!is_Phi(node));
- ir_node *value;
be_foreach_definition(node, cls, value,
ir_nodeset_remove(nodeset, value);
);