Commit 5e3f2a70 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix frame_alloc_area not setting a type size

parent 01e23d45
......@@ -527,11 +527,6 @@ static ir_entity* create_stack_entity(be_fec_env_t *env, spill_slot_t *slot)
ir_type *frame = get_irg_frame_type(irg);
ir_entity *res = frame_alloc_area(frame, slot->size, slot->align,
/* adjust size of the entity type... */
ir_type *enttype = get_entity_type(res);
set_type_size_bytes(enttype, slot->size);
slot->entity = res;
return res;
......@@ -2061,6 +2061,7 @@ ir_entity *frame_alloc_area(ir_type *frame_type, int size, unsigned alignment,
tp = new_type_array(1, a_byte);
set_array_bounds_int(tp, 0, 0, size);
set_type_alignment_bytes(tp, alignment);
set_type_size_bytes(tp, size);
frame_size = get_type_size_bytes(frame_type);
if (at_start) {
Markdown is supported
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