X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyilp2.c;h=9e2cf822c04f6a01a938e3ebae726ead766f8f90;hb=80a6158fdd766f42ee6c508a773bc114ff1b61f3;hp=801e4705786f75b5170f5ed123296754d80c2634;hpb=839487dfb4a714fa7e66063495ade6a3726040ef;p=libfirm diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c index 801e47057..9e2cf822c 100644 --- a/ir/be/becopyilp2.c +++ b/ir/be/becopyilp2.c @@ -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); @@ -530,7 +533,7 @@ int co_solve_ilp2(copy_opt_t *co) { #else /* WITH_ILP */ -static void only_that_you_can_compile_without_WITH_ILP_defined(void) { +static INLINE void only_that_you_can_compile_without_WITH_ILP_defined(void) { } #endif /* WITH_ILP */