* ipa-reference.c (propagate): Fix releasing of IPA summaries.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 10 Oct 2019 19:20:01 +0000 (21:20 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 10 Oct 2019 19:20:01 +0000 (19:20 +0000)
From-SVN: r276849

gcc/ChangeLog
gcc/ipa-reference.c

index f91ff7e..6307ea3 100644 (file)
@@ -1,3 +1,7 @@
+2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-reference.c (propagate): Fix releasing of IPA summaries.
+
 2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>
 
        * config/darwin.c: Lookup Objective C metadata and force indirection
index 78737aa..e95a724 100644 (file)
@@ -891,13 +891,12 @@ propagate (void)
 
   bitmap_obstack_release (&local_info_obstack);
 
-  if (ipa_ref_var_info_summaries == NULL)
+  if (ipa_ref_var_info_summaries != NULL)
     {
       delete ipa_ref_var_info_summaries;
       ipa_ref_var_info_summaries = NULL;
     }
 
-  ipa_ref_var_info_summaries = NULL;
   if (dump_file)
     splay_tree_delete (reference_vars_to_consider);
   reference_vars_to_consider = NULL;