Commit a1059395 authored by Matthias Braun's avatar Matthias Braun
Browse files

bespillslots: use type size, not mode size

parent 043fc8b6
...@@ -562,10 +562,9 @@ static void assign_spillslots(be_fec_env_t *env) ...@@ -562,10 +562,9 @@ static void assign_spillslots(be_fec_env_t *env)
int slotid = spill->spillslot; int slotid = spill->spillslot;
const spillweb_t *web = get_spill_web(spill->web); const spillweb_t *web = get_spill_web(spill->web);
const ir_type *type = web->type; const ir_type *type = web->type;
const ir_mode *mode = get_type_mode(type); int size = get_type_size_bytes(type);
spill_slot_t *slot = &spillslots[slotid];
int size = get_mode_size_bytes(mode);
int align = get_type_alignment_bytes(type); int align = get_type_alignment_bytes(type);
spill_slot_t *slot = &spillslots[slotid];
if (slot->align == 0 && slot->size == 0) { if (slot->align == 0 && slot->size == 0) {
slot->align = align; slot->align = align;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment