aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-reference.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-10-10 21:20:01 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2019-10-10 19:20:01 +0000
commitcd8589ab05a8d926c5330055c1099d300d64a0a8 (patch)
tree5dbebc36a7bc25e14c36a51a18bbbacc8913233d /gcc/ipa-reference.c
parent3a73cd7c9d4e51013aa526988e154a73b86e4970 (diff)
downloadgcc-cd8589ab05a8d926c5330055c1099d300d64a0a8.zip
gcc-cd8589ab05a8d926c5330055c1099d300d64a0a8.tar.gz
gcc-cd8589ab05a8d926c5330055c1099d300d64a0a8.tar.bz2
* ipa-reference.c (propagate): Fix releasing of IPA summaries.
From-SVN: r276849
Diffstat (limited to 'gcc/ipa-reference.c')
-rw-r--r--gcc/ipa-reference.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c
index 78737aa..e95a724 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;