diff options
author | Martin Liska <mliska@suse.cz> | 2017-01-31 11:54:41 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-01-31 10:54:41 +0000 |
commit | a0a348b1670721eb5dff2b88a3cc0f12509fd69b (patch) | |
tree | 3e1ce51ab80bd2ce1e84174605f2582ba2ff5dc6 | |
parent | 8b670f93ab11361ae88a22fea4f96c770afb6311 (diff) | |
download | gcc-a0a348b1670721eb5dff2b88a3cc0f12509fd69b.zip gcc-a0a348b1670721eb5dff2b88a3cc0f12509fd69b.tar.gz gcc-a0a348b1670721eb5dff2b88a3cc0f12509fd69b.tar.bz2 |
Call symbol_summary<>::release instead of ~symbol_summary (PR ipa/79285).
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
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/ipa-prop.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ba1eb6..8190ad4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 834c27d..3ef3d4f 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; } |