Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5db9cfb2
Commit
5db9cfb2
authored
Nov 25, 2008
by
Matthias Braun
Browse files
avoid using mode_Iu directly
[r23963]
parent
1c45d62a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
5db9cfb2
...
...
@@ -913,12 +913,12 @@ static ir_node *adjust_alloc(be_abi_irg_t *env, ir_node *alloc, ir_node *curr_sp
/* we might need to multiply the size with the element size */
if
(
type
!=
firm_unknown_type
&&
get_type_size_bytes
(
type
)
!=
1
)
{
size
=
get_Alloc_size
(
alloc
);
ir_mode
*
mode
=
get_irn_mode
(
size
);
tarval
*
tv
=
new_tarval_from_long
(
get_type_size_bytes
(
type
),
mode_Iu
);
ir_node
*
cnst
=
new_rd_Const
(
dbg
,
irg
,
mode_Iu
,
tv
);
ir_node
*
mul
=
new_rd_Mul
(
dbg
,
irg
,
block
,
get_Alloc_size
(
alloc
),
cnst
,
mode_Iu
);
size
=
mul
;
mode
);
ir_node
*
cnst
=
new_rd_Const
(
dbg
,
irg
,
mode
,
tv
);
size
=
new_rd_Mul
(
dbg
,
irg
,
block
,
size
,
cnst
,
mode
);
}
else
{
size
=
get_Alloc_size
(
alloc
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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