From: Jan Hubicka Date: Thu, 10 Oct 2019 19:20:01 +0000 (+0200) Subject: * ipa-reference.c (propagate): Fix releasing of IPA summaries. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd8589ab05a8d926c5330055c1099d300d64a0a8;p=gcc.git * ipa-reference.c (propagate): Fix releasing of IPA summaries. From-SVN: r276849 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f91ff7ec8c4..6307ea353f5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-10-10 Jan Hubicka + + * ipa-reference.c (propagate): Fix releasing of IPA summaries. + 2019-10-10 Iain Sandoe * config/darwin.c: Lookup Objective C metadata and force indirection diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c index 78737aa9e3f..e95a724d85a 100644 --- a/gcc/ipa-reference.c +++ b/gcc/ipa-reference.c @@ -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;