Fix freeing of thunk-info
authorJan Hubicka <jh@suse.cz>
Sun, 29 Nov 2020 22:22:24 +0000 (23:22 +0100)
committerJan Hubicka <jh@suse.cz>
Sun, 29 Nov 2020 22:22:24 +0000 (23:22 +0100)
PR jit/97867
* symtab-thunks.h (thunk_info::release): Use ggc_delete.

gcc/symtab-thunks.h

index 41a684995b31688e3b3f3df173b22f4542875e04..0dba2217793d53df4df3694f74d948348bac4f33 100644 (file)
@@ -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  */