Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5e3f2a70
Commit
5e3f2a70
authored
Sep 23, 2011
by
Matthias Braun
Browse files
fix frame_alloc_area not setting a type size
parent
01e23d45
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/bespillslots.c
View file @
5e3f2a70
...
...
@@ -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
,
env
->
at_begin
);
/* 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
;
...
...
ir/tr/type.c
View file @
5e3f2a70
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment