summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestate.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/bestate.c
parent5619c9122551713adbefc33977572639408dd8b9 (diff)
Let sched_foreach_from() and sched_foreach_reverse_from() declare their iterator variables.
Diffstat (limited to 'ir/be/bestate.c')
-rw-r--r--ir/be/bestate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/bestate.c b/ir/be/bestate.c
index 1a02a06..adf7859 100644
--- a/ir/be/bestate.c
+++ b/ir/be/bestate.c
@@ -215,7 +215,6 @@ static block_info_t *compute_block_start_state(minibelady_env_t *env, ir_node *b
be_next_use_t next_use;
ir_loop *loop;
ir_node *best_starter, *first;
- ir_node *node;
int n_cfgpreds;
unsigned best_time;
int outer_loop_allowed;
@@ -303,7 +302,7 @@ static block_info_t *compute_block_start_state(minibelady_env_t *env, ir_node *b
/* check all Live-Ins */
be_lv_foreach(env->lv, block, be_lv_state_in, i) {
- node = be_lv_get_irn(env->lv, block, i);
+ ir_node *const node = be_lv_get_irn(env->lv, block, i);
if (!mode_is_data(get_irn_mode(node)))
continue;
@@ -359,7 +358,6 @@ static block_info_t *compute_block_start_state(minibelady_env_t *env, ir_node *b
static void belady(minibelady_env_t *env, ir_node *block)
{
ir_node *current_state;
- ir_node *node;
block_info_t *block_info;
/* Don't do a block twice */