Commit 9aca5960 by Martin Liska Committed by Martin Liska

Use more ggc_delete.

2019-11-05  Martin Liska  <mliska@suse.cz>

	* symbol-summary.h: Use ggc_delete.

From-SVN: r277827
parent 5aef51c2
2019-11-05 Martin Liska <mliska@suse.cz>
* symbol-summary.h: Use ggc_delete.
2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com> 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
* config/aarch64/aarch64.c (thunderx2t99_vector_cost): * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
...@@ -69,10 +69,7 @@ protected: ...@@ -69,10 +69,7 @@ protected:
void release (T *item) void release (T *item)
{ {
if (is_ggc ()) if (is_ggc ())
{ ggc_delete (item);
item->~T ();
ggc_free (item);
}
else else
m_allocator.remove (item); m_allocator.remove (item);
} }
...@@ -562,10 +559,7 @@ protected: ...@@ -562,10 +559,7 @@ protected:
void release (T *item) void release (T *item)
{ {
if (is_ggc ()) if (is_ggc ())
{ ggc_delete (item);
item->~T ();
ggc_free (item);
}
else else
m_allocator.remove (item); m_allocator.remove (item);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment