summaryrefslogtreecommitdiffhomepage
path: root/ir/be/besched.h
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/besched.h
parent5619c9122551713adbefc33977572639408dd8b9 (diff)
Let sched_foreach_from() and sched_foreach_reverse_from() declare their iterator variables.
Diffstat (limited to 'ir/be/besched.h')
-rw-r--r--ir/be/besched.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/besched.h b/ir/be/besched.h
index bec0dc1..f333d22 100644
--- a/ir/be/besched.h
+++ b/ir/be/besched.h
@@ -199,10 +199,10 @@ static inline bool sched_comes_after(const ir_node *n1, const ir_node *n2)
}
#define sched_foreach_from(from, irn) \
- for(irn = from; !sched_is_end(irn); irn = sched_next(irn))
+ for (ir_node *irn = from; !sched_is_end(irn); irn = sched_next(irn))
#define sched_foreach_reverse_from(from, irn) \
- for(irn = from; !sched_is_begin(irn); irn = sched_prev(irn))
+ for (ir_node *irn = from; !sched_is_begin(irn); irn = sched_prev(irn))
/**
* A shorthand macro for iterating over a schedule.