summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-13 09:39:30 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-13 09:39:30 +0100
commitf84594874e48e9883cfb1e040856f3f56782c956 (patch)
tree97808c2e8a19ac30af4cf65ffa8500b139f51827 /ir/be/bestack.c
parent96cdb5f8baa27173cbf79ef6983af4c42de1f9b6 (diff)
Remove the very thin wrapper function arch_register_get_index().
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 99a8145..fc62c83 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -317,7 +317,7 @@ void be_abi_fix_stack_nodes(ir_graph *irg)
new_sp_req->width = 1;
limited_bitset = rbitset_obstack_alloc(obst, new_sp_req->cls->n_regs);
- rbitset_set(limited_bitset, arch_register_get_index(sp));
+ rbitset_set(limited_bitset, sp->index);
new_sp_req->limited = limited_bitset;
if (!rbitset_is_set(birg->allocatable_regs, sp->global_index)) {