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 builtin_unreachable.

From-SVN: r233711
This commit is contained in:
Jan Hubicka 2016-02-25 13:10:04 +01:00 committed by Jan Hubicka
parent c049b10722
commit cf1fcb76fb
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2016-02-25 Jan Hubicka <hubicka@ucw.cz>
PR ipa/69630
* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
on builtin_unreachable.
2016-02-25 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/69896

View file

@ -3181,6 +3181,7 @@ possible_polymorphic_call_targets (tree otr_type,
{
if (complete
&& nodes.length () == 1
&& TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE
&& warn_suggest_final_types
&& !outer_type->derived_types.length ())
{