X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fheight.c;h=482268f28a93fb1a5df278917769f789d2ebe531;hb=00894f1e0b6e74ca6c12d253dd30f7d873808977;hp=f7a813a35e5bb2d0acbaa3caf834c50b1b6efce7;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/ana/height.c b/ir/ana/height.c index f7a813a35..482268f28 100644 --- a/ir/ana/height.c +++ b/ir/ana/height.c @@ -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);