X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Firouts.c;h=f2884476343439f5caee9427bbb037163843f7cd;hb=c6e8578501b64a525e98b222894918e7a4512708;hp=fb5d6500c1099d425b4ec26690468cd039b490b2;hpb=1479bfdba32d70f164f61f1bdc8e31190df1269f;p=libfirm diff --git a/ir/ana/irouts.c b/ir/ana/irouts.c index fb5d6500c..f28844763 100644 --- a/ir/ana/irouts.c +++ b/ir/ana/irouts.c @@ -474,7 +474,7 @@ void compute_irg_outs(ir_graph *irg) { n_out_edges = count_outs(irg); /* allocate memory for all out edges. */ - irg->outs = xcalloc(n_out_edges, sizeof(irg->outs[0])); + irg->outs = XMALLOCNZ(ir_def_use_edge, n_out_edges); #ifdef DEBUG_libfirm irg->n_outs = n_out_edges; #endif /* defined DEBUG_libfirm */ @@ -635,7 +635,7 @@ void compute_ip_outs(void) { } global_count = n_out_edges = count_ip_outs(); - out_edges = xcalloc(n_out_edges, sizeof(out_edges[0])); + out_edges = XMALLOCNZ(ir_node*, n_out_edges); set_irp_ip_outedges(out_edges); set_ip_outs(); }