From: Michael Beck Date: Thu, 23 Dec 2004 15:17:20 +0000 (+0000) Subject: used xcalloc instead of calloc X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=82550fda412c12c083f72ed7d18ebf13d85d41be;p=libfirm used xcalloc instead of calloc --- diff --git a/ir/be/bechordal.c b/ir/be/bechordal.c index bd9298b2e..bdc880d65 100644 --- a/ir/be/bechordal.c +++ b/ir/be/bechordal.c @@ -17,6 +17,7 @@ #include "irgraph.h" #include "irdump.h" #include "irdom.h" +#include "xmalloc.h" #include "beutil.h" #include "besched.h" @@ -86,7 +87,7 @@ static void draw_interval_graphs(ir_node *block, if((f = fopen(buf, "wt")) != NULL) { border_t *b; - int *seen = calloc(get_graph_node_count(irg), sizeof(*seen)); + int *seen = xcalloc(get_graph_node_count(irg), sizeof(seen[0])); int last_pos = list_empty(border_head) ? 0 : list_entry(border_head->prev, border_t, list)->step; int max_col = 0;