diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-12-12 09:46:56 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-12-12 08:46:56 +0000 |
commit | b41e0d29d2a174326fa6e4f5cfcf8c16bdad8c40 (patch) | |
tree | aca9aeef0c4b190bfdac609ee46ae9c05a62ae17 | |
parent | 0a6aa4763eedb8b1a5383b3d9a0cc9d8ec043e4a (diff) | |
download | gcc-b41e0d29d2a174326fa6e4f5cfcf8c16bdad8c40.zip gcc-b41e0d29d2a174326fa6e4f5cfcf8c16bdad8c40.tar.gz gcc-b41e0d29d2a174326fa6e4f5cfcf8c16bdad8c40.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-devirt.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d9a4bde..74e3ddc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 41d4554..9f8dcb5 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; |