summaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authortrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-25 07:41:48 +0000
committertrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-25 07:41:48 +0000
commit4c4946dbb8c7ca8090ff7d349294bfd7bcf2bc01 (patch)
tree4c0ff73cb0c4d815369df604de4e0b12c0e4f55c /gcc/ipa-prop.c
parent949b55645790c4f65e98b33986868a4e8c0491f6 (diff)
downloadgcc-4c4946dbb8c7ca8090ff7d349294bfd7bcf2bc01.tar.gz
Fix PR64059
* ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when devirtualization is disabled. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 2e0016bfbe6..eeffda449d9 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -2155,7 +2155,7 @@ ipa_analyze_call_uses (struct func_body_info *fbi, gcall *call)
if (cs && !cs->indirect_unknown_callee)
return;
- if (cs->indirect_info->polymorphic)
+ if (cs->indirect_info->polymorphic && flag_devirtualize)
{
tree instance;
tree target = gimple_call_fn (call);