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
105882ed
Commit
105882ed
authored
May 30, 2011
by
Andreas Zwinkau
Browse files
Fix opt/inline.c
parent
82c2309e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/opt_inline.c
View file @
105882ed
...
...
@@ -1687,6 +1687,13 @@ static void inline_into(ir_graph *irg, unsigned maxsize,
* but we need Call nodes in our graph. Luckily the inliner leaves
* this information in the link field. */
new_call
=
(
ir_node
*
)
get_irn_link
(
centry
->
call
);
if
(
get_irn_irg
(
new_call
)
!=
irg
)
{
/* centry->call has not been copied, which means it is dead.
* This might happen during inlining, if a const function,
* which cannot be inlined is only used as an unused argument
* of another function, which is inlined. */
continue
;
}
assert
(
is_Call
(
new_call
));
new_entry
=
duplicate_call_entry
(
centry
,
new_call
,
loop_depth
);
...
...
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