* 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 f91ff7ec8c41624ab70a811f2d08eb0cc08d0c59..6307ea353f57c27c0ed8a3f2affe1a5cf10f315f 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 78737aa9e3f3b8ace8e78f09814fc2982bb7e2fe..e95a724d85a3f1f72819cff426c725bc0a154644 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;