From: Jan Hubicka Date: Sun, 29 Nov 2020 22:22:24 +0000 (+0100) Subject: Fix freeing of thunk-info X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=caea077c17fdf6fe1aa4c350260f25439dfd5066;p=gcc.git Fix freeing of thunk-info PR jit/97867 * symtab-thunks.h (thunk_info::release): Use ggc_delete. --- diff --git a/gcc/symtab-thunks.h b/gcc/symtab-thunks.h index 41a684995b3..0dba2217793 100644 --- a/gcc/symtab-thunks.h +++ b/gcc/symtab-thunks.h @@ -167,7 +167,7 @@ inline void thunk_info::release () { if (symtab->m_thunks) - delete (symtab->m_thunks); + ggc_delete (symtab->m_thunks); symtab->m_thunks = NULL; } #endif /* GCC_SYMTAB_THUNKS_H */