projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sched_skip_cf_predicator() does not need an arch_env as environment anymore.
[libfirm]
/
ir
/
ana
/
cgana.c
diff --git
a/ir/ana/cgana.c
b/ir/ana/cgana.c
index
f3cf4b6
..
4ad5ece
100644
(file)
--- a/
ir/ana/cgana.c
+++ b/
ir/ana/cgana.c
@@
-63,10
+63,6
@@
#include "irdump.h"
#include "irdump.h"
-#include "irhooks.h"
-
-
-
/* unambiguous address used as a mark. */
static void *MARK = &MARK;
/* unambiguous address used as a mark. */
static void *MARK = &MARK;
@@
-632,7
+628,7
@@
static ir_entity **get_free_methods(int *length)
/* Finally, transform the set into an array. */
*length = eset_count(free_set);
/* Finally, transform the set into an array. */
*length = eset_count(free_set);
- arr =
xmalloc(sizeof(ir_entity *) * (*length)
);
+ arr =
XMALLOCN(ir_entity*, *length
);
for (i = 0, ent = eset_first(free_set); ent; ent = eset_next(free_set)) {
arr[i++] = ent;
}
for (i = 0, ent = eset_first(free_set); ent; ent = eset_next(free_set)) {
arr[i++] = ent;
}