public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [COMMITTED] Use delete[] in int_range destructor [PR109920]
@ 2023-05-23  6:57 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2023-05-23  6:57 UTC (permalink / raw)
  To: GCC patches; +Cc: Andrew MacLeod, Aldy Hernandez

gcc/ChangeLog:

	PR tree-optimization/109920
	* value-range.h (RESIZABLE>::~int_range): Use delete[].
---
 gcc/value-range.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/value-range.h b/gcc/value-range.h
index 171e6426c6e..936eb175062 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -490,7 +490,7 @@ inline
 int_range<N, RESIZABLE>::~int_range ()
 {
   if (RESIZABLE && m_base != m_ranges)
-    delete m_base;
+    delete[] m_base;
 }
 
 // This is an "infinite" precision irange for use in temporary
-- 
2.40.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-23  6:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23  6:57 [COMMITTED] Use delete[] in int_range destructor [PR109920] Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).