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
This commit is contained in:
Martin Liska 2017-01-31 11:54:41 +01:00 committed by Martin Liska
parent 8b670f93ab
commit a0a348b167
2 changed files with 8 additions and 1 deletions

View 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

View 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;
}