diff options
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c index 2404024d722..7eabecf6c95 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -244,7 +244,8 @@ walk_polymorphic_call_targets (hash_set<void *> *reachable_call_targets, } edge = edge->make_direct (target); if (ipa_fn_summaries) - ipa_update_overall_fn_summary (node); + ipa_update_overall_fn_summary (node->inlined_to + ? node->inlined_to : node); else if (edge->call_stmt) edge->redirect_call_stmt_to_callee (); } |