From 82550fda412c12c083f72ed7d18ebf13d85d41be Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 23 Dec 2004 15:17:20 +0000 Subject: [PATCH] used xcalloc instead of calloc --- ir/be/bechordal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1