summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespillslots.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-04-07 16:17:41 +0200
committerMatthias Braun <matze@braunis.de>2014-04-07 16:17:41 +0200
commita10593957bf1bfef42d844b67110a68ac223e54a (patch)
tree2a998767ef5a1024aa75c0c9886b2455a159353c /ir/be/bespillslots.c
parent043fc8b65fc03921ced442453e1d11c533c99a52 (diff)
bespillslots: use type size, not mode size
Diffstat (limited to 'ir/be/bespillslots.c')
-rw-r--r--ir/be/bespillslots.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/bespillslots.c b/ir/be/bespillslots.c
index 48b6026..a0f4202 100644
--- a/ir/be/bespillslots.c
+++ b/ir/be/bespillslots.c
@@ -562,10 +562,9 @@ static void assign_spillslots(be_fec_env_t *env)
int slotid = spill->spillslot;
const spillweb_t *web = get_spill_web(spill->web);
const ir_type *type = web->type;
- const ir_mode *mode = get_type_mode(type);
- spill_slot_t *slot = &spillslots[slotid];
- int size = get_mode_size_bytes(mode);
+ int size = get_type_size_bytes(type);
int align = get_type_alignment_bytes(type);
+ spill_slot_t *slot = &spillslots[slotid];
if (slot->align == 0 && slot->size == 0) {
slot->align = align;