From: Jan Hubicka Date: Fri, 12 Dec 2014 08:46:56 +0000 (+0100) Subject: ipa-devirt.c (possible_polymorphic_call_targets): Return early if otr_type has no... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b41e0d29d2a174326fa6e4f5cfcf8c16bdad8c40;p=gcc.git ipa-devirt.c (possible_polymorphic_call_targets): Return early if otr_type has no BINFO. * ipa-devirt.c (possible_polymorphic_call_targets): Return early if otr_type has no BINFO. From-SVN: r218659 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d9a4bded7c5..74e3ddc2a3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-12 Jan Hubicka + + * ipa-devirt.c (possible_polymorphic_call_targets): Return early + if otr_type has no BINFO. + 2014-12-12 Zhenqiang Chen PR rtl-optimization/63917 diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 41d4554784d..9f8dcb57ceb 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -2239,7 +2239,7 @@ possible_polymorphic_call_targets (tree otr_type, /* If ODR is not initialized or the constext is invalid, return empty incomplete list. */ - if (!odr_hash || context.invalid) + if (!odr_hash || context.invalid || !TYPE_BINFO (otr_type)) { if (completep) *completep = context.invalid;