From: Martin Liska Date: Tue, 5 Nov 2019 12:45:04 +0000 (+0100) Subject: Use more ggc_delete. X-Git-Tag: upstream/12.2.0~20664 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9aca5960a4b723e4b544544478871292990fed31;p=platform%2Fupstream%2Fgcc.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 cf6aa5c..c281cc8 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 8aedcfe..a5e20e5 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); }