projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8922ac3
)
used xcalloc instead of calloc
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 23 Dec 2004 15:17:20 +0000
(15:17 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 23 Dec 2004 15:17:20 +0000
(15:17 +0000)
ir/be/bechordal.c
patch
|
blob
|
history
diff --git
a/ir/be/bechordal.c
b/ir/be/bechordal.c
index
bd9298b
..
bdc880d
100644
(file)
--- 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;