diff options
author | David Malcolm <dmalcolm@redhat.com> | 2020-01-14 11:32:13 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2020-01-21 10:49:46 -0500 |
commit | 65be83b5ac0410a5e64c648c36aaf4bd10d09bf2 (patch) | |
tree | 9cc8f8e50e55265e1cf09041e5a68d5ffd5a3e37 /gcc/ipa-profile.c | |
parent | 3c9e580511e713068c0ea0d7b34f6e50ebf85447 (diff) | |
download | gcc-65be83b5ac0410a5e64c648c36aaf4bd10d09bf2.zip gcc-65be83b5ac0410a5e64c648c36aaf4bd10d09bf2.tar.gz gcc-65be83b5ac0410a5e64c648c36aaf4bd10d09bf2.tar.bz2 |
ipa-profile.c: reset call_sums state within ipa-profile.c (v2; PR 93315)
gcc/ChangeLog:
PR ipa/93315
* ipa-profile.c (ipa_profile): Delete call_sums and set it to
NULL on exit.
Diffstat (limited to 'gcc/ipa-profile.c')
-rw-r--r-- | gcc/ipa-profile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index 670d9e2..8c5502b 100644 --- a/gcc/ipa-profile.c +++ b/gcc/ipa-profile.c @@ -1023,6 +1023,9 @@ ipa_profile (void) if (dump_file && (dump_flags & TDF_DETAILS)) symtab->dump (dump_file); + delete call_sums; + call_sums = NULL; + return 0; } |