PR ipa/69630
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Feb 2016 12:10:04 +0000 (12:10 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Feb 2016 12:10:04 +0000 (12:10 +0000)
* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
on builtin_unreachable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233711 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-devirt.c

index 4e360d5..9daf0c0 100644 (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
index b2036d5..deb2a27 100644 (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 ())
                    {