diff options
author | Martin Liska <mliska@suse.cz> | 2019-11-05 13:45:04 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-11-05 12:45:04 +0000 |
commit | 9aca5960a4b723e4b544544478871292990fed31 (patch) | |
tree | 6b9ca17c97d0a6970ff43bdb4c31330b2c02fc9f | |
parent | 5aef51c2199f69885a43592db3a1ec15f43f4064 (diff) | |
download | gcc-9aca5960a4b723e4b544544478871292990fed31.zip gcc-9aca5960a4b723e4b544544478871292990fed31.tar.gz gcc-9aca5960a4b723e4b544544478871292990fed31.tar.bz2 |
Use more ggc_delete.
2019-11-05 Martin Liska <mliska@suse.cz>
* symbol-summary.h: Use ggc_delete.
From-SVN: r277827
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/symbol-summary.h | 10 |
2 files changed, 6 insertions, 8 deletions
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 <mliska@suse.cz> + + * symbol-summary.h: Use ggc_delete. + 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com> * 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); } |