projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not mark the transformed as visited. It makes no sense at all.
[libfirm]
/
ir
/
ana
/
cgana.c
diff --git
a/ir/ana/cgana.c
b/ir/ana/cgana.c
index
f3cf4b6
..
a1cf224
100644
(file)
--- a/
ir/ana/cgana.c
+++ b/
ir/ana/cgana.c
@@
-632,7
+632,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;
}