]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: libproc_macro: Fix literal drop function
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Fri, 21 Apr 2023 10:00:08 +0000 (12:00 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:34:12 +0000 (18:34 +0100)
commit269870741990b742d3a9fa57af8e0ae709e68bbf
treea878f5a5f81f4e831be8c421f709f07d95b67458
parent98b779a83cbbbe87e2aad76d230b6c8674645943
gccrs: libproc_macro: Fix literal drop function

Fix drop function by changing the delete operator to delete[] in order
to avoid undefined behaviors.

libgrust/ChangeLog:

* libproc_macro/literal.cc (Literal::drop): Change
delete operator to delete[].

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
libgrust/libproc_macro/literal.cc