Added a set_break()
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Thu, 7 Sep 2006 08:04:45 +0000 (08:04 +0000)
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Thu, 7 Sep 2006 08:04:45 +0000 (08:04 +0000)
ir/be/becopyilp2.c

index 801e470..6aaf689 100644 (file)
@@ -297,6 +297,9 @@ static void build_clique_star_cstr(ilp_env_t *ienv) {
                        for (e=set_first(edges); !e->n1; e=set_next(edges))
                                /*nothing*/ ;
 
+                       /* we could be stepped out of the loop before the set iterated to the end */
+                       set_break(edges);
+
                        pset_insert_ptr(clique, e->n1);
                        pset_insert_ptr(clique, e->n2);
                        remove_edge(edges, e->n1, e->n2, &n_edges);