summaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-26 08:39:48 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-26 08:39:48 +0000
commit6469addef01b87ec97744cb38d29e4aaaf494f60 (patch)
treeb377cb1efd16588a9b2190aa36c8436ccfd7cefe /gcc/ipa.c
parent3c2e3ed6de5a1bd597c5a6e666013173aeb6ccab (diff)
downloadgcc-6469addef01b87ec97744cb38d29e4aaaf494f60.tar.gz
2014-02-26 Richard Biener <rguenther@suse.de>
PR ipa/60327 * ipa.c (walk_polymorphic_call_targets): Properly guard call to inline_update_overall_summary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208167 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index b3b630643ba..405ee644c36 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -223,10 +223,10 @@ walk_polymorphic_call_targets (pointer_set_t *reachable_call_targets,
edge->caller->order,
target->name (), target->order);
edge = cgraph_make_edge_direct (edge, target);
- if (!inline_summary_vec && edge->call_stmt)
- cgraph_redirect_edge_call_stmt_to_callee (edge);
- else
+ if (inline_summary_vec)
inline_update_overall_summary (node);
+ else if (edge->call_stmt)
+ cgraph_redirect_edge_call_stmt_to_callee (edge);
}
}
}