summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp2.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-12-15 10:28:50 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-12-15 22:03:45 +0100
commit1df636d8cad2349ed92e421bff011445e0d25810 (patch)
tree041f62db6b9989f681143fa23beb1db37884abf3 /ir/be/becopyilp2.c
parentd2b8adc12afc99ec5f04d530638803356f8be9f6 (diff)
beifg: Let be_ifg_foreach_node() declare its iterator internally.
Diffstat (limited to 'ir/be/becopyilp2.c')
-rw-r--r--ir/be/becopyilp2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c
index ee1c4eb..f3eefa3 100644
--- a/ir/be/becopyilp2.c
+++ b/ir/be/becopyilp2.c
@@ -73,11 +73,10 @@ static void build_coloring_cstr(ilp_env_t *ienv)
be_ifg_t *ifg = ienv->co->cenv->ifg;
unsigned n_regs = arch_register_class_n_regs(ienv->co->cls);
const unsigned *allocatable_colors = lenv->allocatable_colors;
- nodes_iter_t iter;
char buf[32];
unsigned *const colors = rbitset_alloca(n_regs);
- be_ifg_foreach_node(ifg, &iter, irn) {
+ be_ifg_foreach_node(ifg, irn) {
const arch_register_req_t *req;
unsigned col;
int cst_idx;