re PR lto/69630 (LTO ICE in types_same_for_odr at ipa-devirt.c:402)

PR ipa/69630
	* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
	on cxa_pure_virtual.

From-SVN: r234114
This commit is contained in:
Jan Hubicka 2016-03-10 17:05:59 +01:00 committed by Jan Hubicka
parent 2b9c477e7c
commit 079cd8548b
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2016-03-10 Jan Hubicka <hubicka@ucw.cz>
PR ipa/69630
* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
on cxa_pure_virtual.
2016-03-10 Jan Hubicka <hubicka@ucw.cz>
PR lto/69589

View file

@ -3177,11 +3177,11 @@ possible_polymorphic_call_targets (tree otr_type,
if (!outer_type->all_derivations_known)
{
if (!speculative && final_warning_records)
if (!speculative && final_warning_records
&& TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE)
{
if (complete
&& nodes.length () == 1
&& TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE
&& warn_suggest_final_types
&& !outer_type->derived_types.length ())
{