From a0a348b1670721eb5dff2b88a3cc0f12509fd69b Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 31 Jan 2017 11:54:41 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 +++++++ gcc/ipa-prop.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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; } -- 2.30.2