X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fcgana.c;h=a4052fadef085d893a14f9e35e39270b830bb65e;hb=b451899be294500fe974c6e97febc59cabdda114;hp=553078f3e9e7ecac18f4158d615dbba9bab35450;hpb=98beada6bb7ecbc2748b98f5e3b0ecfaa5a49144;p=libfirm diff --git a/ir/ana/cgana.c b/ir/ana/cgana.c index 553078f3e..a4052fade 100644 --- a/ir/ana/cgana.c +++ b/ir/ana/cgana.c @@ -120,7 +120,7 @@ static ir_entity **get_impl_methods(ir_entity *method) arr = NULL; } else { arr = NEW_ARR_F(ir_entity *, size); - foreach_pset(set, ir_entity*, ent) { + foreach_pset(set, ir_entity, ent) { arr[--size] = ent; } } @@ -570,7 +570,7 @@ static size_t get_free_methods(ir_entity ***free_methods) length = pset_count(free_set); arr = XMALLOCN(ir_entity*, length); i = 0; - foreach_pset(free_set, ir_entity*, ent) { + foreach_pset(free_set, ir_entity, ent) { arr[i++] = ent; } del_pset(free_set); @@ -717,7 +717,7 @@ static void callee_walker(ir_node *call, void *env) callee_ana_node(get_Call_ptr(call), methods); arr = NEW_ARR_F(ir_entity*, pset_count(methods)); i = 0; - foreach_pset(methods, ir_entity*, ent) { + foreach_pset(methods, ir_entity, ent) { arr[i] = ent; /* we want the unknown_entity on the zero position for easy tests later */ if (is_unknown_entity(ent)) { @@ -771,7 +771,7 @@ static void callee_ana(void) static void sel_methods_dispose(void) { assert(entities); - foreach_pset(entities, ir_entity*, ent) { + foreach_pset(entities, ir_entity, ent) { ir_entity **arr = (ir_entity**) get_entity_link(ent); if (arr != NULL) { DEL_ARR_F(arr);