summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp2.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 13:55:40 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:58 +0200
commit98beada6bb7ecbc2748b98f5e3b0ecfaa5a49144 (patch)
tree2074fc64c85664338a9cd97cb2c0934e5a84b2d4 /ir/be/becopyilp2.c
parent26b9008643da89a023fd6839ded5b9abf21ef328 (diff)
Let foreach_pset() declare its iterator variable.
Diffstat (limited to 'ir/be/becopyilp2.c')
-rw-r--r--ir/be/becopyilp2.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c
index ee7474a..149fe24 100644
--- a/ir/be/becopyilp2.c
+++ b/ir/be/becopyilp2.c
@@ -414,7 +414,6 @@ static void build_clique_star_cstr(ilp_env_t *ienv)
/* search for a candidate to extend the clique */
for (i=0; i<n_nodes; ++i) {
ir_node *cand = nodes[i];
- ir_node *member;
bool is_cand;
/* if its already in the clique try the next */
@@ -447,10 +446,9 @@ static void build_clique_star_cstr(ilp_env_t *ienv)
/* now the clique is maximal. Finally add the constraint */
{
- ir_node *member;
- int var_idx;
- int cst_idx;
- char buf[32];
+ int var_idx;
+ int cst_idx;
+ char buf[32];
cst_idx = lpp_add_cst(ienv->lp, NULL, lpp_greater_equal, pset_count(clique)-1);