summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-06-23 06:57:08 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-06-26 23:40:47 +0200
commit7cbfeeea7b81fd499959963694a9d9457237cbc2 (patch)
tree82689d2a4f88b0d77d961aabdb3bc7b3a6a65783 /ir/be/betranshlp.c
parentd8fb534de0740baa44800b82c99d68861c56f03c (diff)
be: Add and use be_allocate_in_reqs().
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index e0be216..ef0ec4d 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -68,8 +68,7 @@ ir_node *be_transform_phi(ir_node *node, const arch_register_req_t *req)
copy_node_attr(irg, node, phi);
backend_info_t *info = be_get_info(phi);
- struct obstack *obst = be_get_be_obst(irg);
- info->in_reqs = OALLOCN(obst, const arch_register_req_t*, arity);
+ info->in_reqs = be_allocate_in_reqs(irg, arity);
for (int i = 0; i < arity; ++i) {
info->in_reqs[i] = req;
}