summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bechordal_common.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 10:08:20 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:58 +0200
commit6153d2198a2cf1234c50acc744243306bd9ab1a5 (patch)
tree7e387c9698880043770bc35b96c60dd3642a6e7b /ir/be/bechordal_common.c
parent5619c9122551713adbefc33977572639408dd8b9 (diff)
Let sched_foreach_from() and sched_foreach_reverse_from() declare their iterator variables.
Diffstat (limited to 'ir/be/bechordal_common.c')
-rw-r--r--ir/be/bechordal_common.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ir/be/bechordal_common.c b/ir/be/bechordal_common.c
index 2a3e634..c6dce09 100644
--- a/ir/be/bechordal_common.c
+++ b/ir/be/bechordal_common.c
@@ -112,10 +112,9 @@ void create_borders(ir_node *block, void *env_ptr)
#define border_use(irn, step, real) \
border_add(env, head, irn, step, ++pressure, 0, real)
- be_chordal_env_t *env = (be_chordal_env_t*)env_ptr;
- bitset_t *live = bitset_malloc(get_irg_last_idx(env->irg));
- ir_node *irn;
- be_lv_t *lv = be_get_irg_liveness(env->irg);
+ be_chordal_env_t *env = (be_chordal_env_t*)env_ptr;
+ bitset_t *live = bitset_malloc(get_irg_last_idx(env->irg));
+ be_lv_t *lv = be_get_irg_liveness(env->irg);
int i, n;
size_t elm;