X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeifg.c;h=857c20bede152c43148f1e866435cc3742722ddd;hb=d7b29b5991a61f4e5967157e573bed898204ec03;hp=e59faa6d94da53e31e2ce77eef2320a7fce26897;hpb=c5ff6a4703ccf54f3f18371dcbe79bb4b91fe066;p=libfirm diff --git a/ir/be/beifg.c b/ir/be/beifg.c index e59faa6d9..857c20bed 100644 --- a/ir/be/beifg.c +++ b/ir/be/beifg.c @@ -244,11 +244,9 @@ static inline int get_next_clique(cliques_iter_t *it) /* before shrinking the set, return the current maximal clique */ if (output_on_shrink) { int count = 0; - ir_node *irn; /* fill the output buffer */ - for (irn = (ir_node*)pset_first(it->living); irn != NULL; - irn = (ir_node*)pset_next(it->living)) { + foreach_pset(it->living, ir_node, irn) { it->buf[count++] = irn; }