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
This commit is contained in:
Jan Hubicka 2014-12-12 09:46:56 +01:00 committed by Jan Hubicka
parent 0a6aa4763e
commit b41e0d29d2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-12-12 Jan Hubicka <hubicka@ucw.cz>
* ipa-devirt.c (possible_polymorphic_call_targets): Return early
if otr_type has no BINFO.
2014-12-12 Zhenqiang Chen <zhenqiang.chen@arm.com>
PR rtl-optimization/63917

View File

@ -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;