summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-03-19 17:28:33 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-03-21 13:33:38 +0100
commitacad1b054639456ae36364d9c84827d3d9eef2e5 (patch)
tree4ca101ff29697fb9103564c81d97982a4a8ea377 /ir/be/bestack.c
parent8162ac734e468bb977246e76c7b8458f640a7271 (diff)
be: Pass an 'irg' instead of an 'obst' to 'be_create_reg_req()'.
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 010af5d..398efcd 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -198,8 +198,7 @@ void be_fix_stack_nodes(ir_graph *const irg, arch_register_t const *const sp)
be_irg_t *const birg = be_birg_from_irg(irg);
const arch_register_req_t *sp_req;
if (!rbitset_is_set(birg->allocatable_regs, sp->global_index)) {
- struct obstack *const obst = be_get_be_obst(irg);
- sp_req = be_create_reg_req(obst, sp, true);
+ sp_req = be_create_reg_req(irg, sp, true);
} else {
sp_req = sp->single_req;
}