Call symbol_summary<>::release instead of ~symbol_summary (PR ipa/79285).
authorMartin Liska <mliska@suse.cz>
Tue, 31 Jan 2017 10:54:41 +0000 (11:54 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 31 Jan 2017 10:54:41 +0000 (10:54 +0000)
2017-01-31  Martin Liska  <mliska@suse.cz>

PR ipa/79285
* ipa-prop.c (ipa_free_all_node_params): Call release method
instead of ~sumbol_summary to not to trigger double times
dtor of hash_map.

From-SVN: r245058

gcc/ChangeLog
gcc/ipa-prop.c

index 1ba1eb67ebde3df7586a5de081bae5fd7fd7ced3..8190ad43c299c3565cc6071017a47339ea3932e8 100644 (file)
@@ -1,3 +1,10 @@
+2017-01-31  Martin Liska  <mliska@suse.cz>
+
+       PR ipa/79285
+       * ipa-prop.c (ipa_free_all_node_params): Call release method
+       instead of ~sumbol_summary to not to trigger double times
+       dtor of hash_map.
+
 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
 
        PR tree-optimization/71691
index 834c27d100e7aa862268ab80d8434f83f13a6b05..3ef3d4fae9ef4216f587bd81401fd203bb892e51 100644 (file)
@@ -3574,7 +3574,7 @@ ipa_free_all_edge_args (void)
 void
 ipa_free_all_node_params (void)
 {
-  ipa_node_params_sum->~ipa_node_params_t ();
+  ipa_node_params_sum->release ();
   ipa_node_params_sum = NULL;
 }