projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82550fd
)
used xcalloc instead of calloc
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 23 Dec 2004 15:20:37 +0000
(15:20 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 23 Dec 2004 15:20:37 +0000
(15:20 +0000)
ir/be/benumb.c
patch
|
blob
|
history
diff --git
a/ir/be/benumb.c
b/ir/be/benumb.c
index
380441a
..
04dc9c7
100644
(file)
--- a/
ir/be/benumb.c
+++ b/
ir/be/benumb.c
@@
-10,6
+10,7
@@
#include "irnode_t.h"
#include "irgwalk.h"
+#include "xmalloc.h"
#include "be_t.h"
#include "benumb_t.h"
@@
-59,7
+60,7
@@
void be_numbering(ir_graph *irg)
irg_walk_graph(irg, numbering_walker, NULL, NULL);
- reverse_map =
calloc(get_graph_node_count(irg), sizeof(*reverse_map
));
+ reverse_map =
xcalloc(get_graph_node_count(irg), sizeof(reverse_map[0]
));
irg_walk_graph(irg, reverse_walker, NULL, reverse_map);
get_irg_numbering(irg)->reverse_map = reverse_map;