X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fcgana.c;h=4ad5eceb965473a29c318e2631bff979e5889ab3;hb=df87ac575b8844b509cf576e9432f4eeadb0880a;hp=f3cf4b600346e1c7d8e056f54660e74d5d4505d5;hpb=4b1138a9eee25ce11adbb7d7162eaa49421e8b51;p=libfirm diff --git a/ir/ana/cgana.c b/ir/ana/cgana.c index f3cf4b600..4ad5eceb9 100644 --- a/ir/ana/cgana.c +++ b/ir/ana/cgana.c @@ -63,10 +63,6 @@ #include "irdump.h" -#include "irhooks.h" - - - /* unambiguous address used as a mark. */ static void *MARK = &MARK; @@ -632,7 +628,7 @@ static ir_entity **get_free_methods(int *length) /* Finally, transform the set into an array. */ *length = eset_count(free_set); - arr = xmalloc(sizeof(ir_entity *) * (*length)); + arr = XMALLOCN(ir_entity*, *length); for (i = 0, ent = eset_first(free_set); ent; ent = eset_next(free_set)) { arr[i++] = ent; }