From: Martin Liska Date: Tue, 31 Jan 2017 10:54:41 +0000 (+0100) Subject: Call symbol_summary<>::release instead of ~symbol_summary (PR ipa/79285). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0a348b1670721eb5dff2b88a3cc0f12509fd69b;p=gcc.git Call symbol_summary<>::release instead of ~symbol_summary (PR ipa/79285). 2017-01-31 Martin Liska 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ba1eb67ebd..8190ad43c29 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-01-31 Martin Liska + + 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 PR tree-optimization/71691 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 834c27d100e..3ef3d4fae9e 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -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; }