From: Martin Liska Date: Tue, 5 Nov 2019 12:45:04 +0000 (+0100) Subject: Use more ggc_delete. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9aca5960a4b723e4b544544478871292990fed31;p=gcc.git Use more ggc_delete. 2019-11-05 Martin Liska * symbol-summary.h: Use ggc_delete. From-SVN: r277827 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf6aa5c6ff9..c281cc84ef9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-11-05 Martin Liska + + * symbol-summary.h: Use ggc_delete. + 2019-11-05 Anton Youdkevitch * config/aarch64/aarch64.c (thunderx2t99_vector_cost): diff --git a/gcc/symbol-summary.h b/gcc/symbol-summary.h index 8aedcfe9143..a5e20e547a1 100644 --- a/gcc/symbol-summary.h +++ b/gcc/symbol-summary.h @@ -69,10 +69,7 @@ protected: void release (T *item) { if (is_ggc ()) - { - item->~T (); - ggc_free (item); - } + ggc_delete (item); else m_allocator.remove (item); } @@ -562,10 +559,7 @@ protected: void release (T *item) { if (is_ggc ()) - { - item->~T (); - ggc_free (item); - } + ggc_delete (item); else m_allocator.remove (item); }