From cd8589ab05a8d926c5330055c1099d300d64a0a8 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 10 Oct 2019 21:20:01 +0200 Subject: [PATCH] * ipa-reference.c (propagate): Fix releasing of IPA summaries. From-SVN: r276849 --- gcc/ChangeLog | 4 ++++ gcc/ipa-reference.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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; -- 2.30.2