ipa-profile.c: reset call_sums state within ipa-profile.c (v2; PR 93315)
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 14 Jan 2020 16:32:13 +0000 (11:32 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 21 Jan 2020 15:49:46 +0000 (10:49 -0500)
gcc/ChangeLog:
PR ipa/93315
* ipa-profile.c (ipa_profile): Delete call_sums and set it to
NULL on exit.

gcc/ChangeLog
gcc/ipa-profile.c

index 1e596773ba0736f43dbb149198e56c9328b4bdc3..325033610d67d20f9a2e89d8d14f4a7bba037ec9 100644 (file)
@@ -1,3 +1,9 @@
+2020-01-21  David Malcolm  <dmalcolm@redhat.com>
+
+       PR ipa/93315
+       * ipa-profile.c (ipa_profile): Delete call_sums and set it to
+       NULL on exit.
+
 2020-01-18  Jan Hubicka  <hubicka@ucw.cz>
 
        PR lto/93318    
index 670d9e2fb73a32c6ea98741d8c002e729011f101..8c5502bcc8817a528fd493071f6bb3086240b520 100644 (file)
@@ -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;
 }