X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fheight.c;h=482268f28a93fb1a5df278917769f789d2ebe531;hb=afbbc0b1ccd684c4c24bfd43d0f994123245f39f;hp=d7cb2611acdb94e2483b4d8b96891c5e2d0347f9;hpb=0e5f781d021c0b1e20ba08f583d4971419fedb5d;p=libfirm diff --git a/ir/ana/height.c b/ir/ana/height.c index d7cb2611a..482268f28 100644 --- a/ir/ana/height.c +++ b/ir/ana/height.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -245,7 +245,7 @@ void heights_recompute(heights_t *h) heights_t *heights_new(ir_graph *irg) { - heights_t *res = xmalloc(sizeof(res[0])); + heights_t *res = XMALLOC(heights_t); phase_init(&res->ph, "heights", irg, PHASE_DEFAULT_GROWTH, irn_height_init, NULL); res->dump_handle = dump_add_node_info_callback(height_dump_cb, res); heights_recompute(res);