From d4915662fa33b1b7365e9a50ea8fa6eca56b2cf6 Mon Sep 17 00:00:00 2001 From: hubicka Date: Fri, 12 Dec 2014 08:46:56 +0000 Subject: [PATCH] * ipa-devirt.c (possible_polymorphic_call_targets): Return early if otr_type has no BINFO. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218659 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/ipa-devirt.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d9a4bded7c5c..74e3ddc2a3cb 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 41d4554784d3..9f8dcb57ceb0 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; -- 2.47.3