projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc6a704
)
allocate callee list on nodes obstack
author
Matthias Braun
<matze@braunis.de>
Tue, 23 Sep 2008 12:31:28 +0000
(12:31 +0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 23 Sep 2008 12:31:28 +0000
(12:31 +0000)
[r22196]
ir/ir/irnode.c
patch
|
blob
|
history
diff --git
a/ir/ir/irnode.c
b/ir/ir/irnode.c
index
1958ab8
..
6194330
100644
(file)
--- a/
ir/ir/irnode.c
+++ b/
ir/ir/irnode.c
@@
-1397,7
+1397,8
@@
ir_entity *get_Call_callee(const ir_node *node, int pos) {
void set_Call_callee_arr(ir_node *node, const int n, ir_entity ** arr) {
assert(is_Call(node));
if (node->attr.call.callee_arr == NULL || get_Call_n_callees(node) != n) {
- node->attr.call.callee_arr = NEW_ARR_D(ir_entity *, current_ir_graph->obst, n);
+ ir_graph *irg = get_irn_irg(node);
+ node->attr.call.callee_arr = NEW_ARR_D(ir_entity *, irg->obst, n);
}
memcpy(node->attr.call.callee_arr, arr, n * sizeof(ir_entity *));
}