From b41e0d29d2a174326fa6e4f5cfcf8c16bdad8c40 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 12 Dec 2014 09:46:56 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/ipa-devirt.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;