re PR lto/91375 (ICE on valid code in subbinfo_with_vtable_at_offset at ipa-devirt...
authorRichard Biener <rguenther@suse.de>
Mon, 12 Aug 2019 11:02:21 +0000 (11:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 12 Aug 2019 11:02:21 +0000 (11:02 +0000)
2019-08-12  Richard Biener  <rguenther@suse.de>

PR lto/91375
* tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
flag_devirtualize.

From-SVN: r274310

gcc/ChangeLog
gcc/tree.c

index c59df62..9f76712 100644 (file)
@@ -1,5 +1,11 @@
 2019-08-12  Richard Biener  <rguenther@suse.de>
 
+       PR lto/91375
+       * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
+       flag_devirtualize.
+
+2019-08-12  Richard Biener  <rguenther@suse.de>
+
        PR driver/91130
        * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
        lang_mask option, always use CL_DRIVER.
index 154ef3a..8f80012 100644 (file)
@@ -5531,8 +5531,7 @@ free_lang_data_in_type (tree type, class free_lang_data_d *fld)
          free_lang_data_in_binfo (TYPE_BINFO (type));
          /* We need to preserve link to bases and virtual table for all
             polymorphic types to make devirtualization machinery working.  */
-         if (!BINFO_VTABLE (TYPE_BINFO (type))
-             || !flag_devirtualize)
+         if (!BINFO_VTABLE (TYPE_BINFO (type)))
            TYPE_BINFO (type) = NULL;
        }
     }