public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6224] gccrs: typecheck: Fix overzealous `delete` call
@ 2023-02-21 12:01 Arthur Cohen
  0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2023-02-21 12:01 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:85f69a9b6abd398f6344135d8094cf8256c6279c

commit r13-6224-g85f69a9b6abd398f6344135d8094cf8256c6279c
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Wed Nov 2 09:52:01 2022 +0100

    gccrs: typecheck: Fix overzealous `delete` call
    
    gcc/rust/ChangeLog:
    
            * typecheck/rust-tyty-call.cc (TypeCheckCallExpr::visit): Fix extra call
            to `delete`.

Diff:
---
 gcc/rust/typecheck/rust-tyty-call.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/rust/typecheck/rust-tyty-call.cc b/gcc/rust/typecheck/rust-tyty-call.cc
index 0c9e9f488fd..d520b595e43 100644
--- a/gcc/rust/typecheck/rust-tyty-call.cc
+++ b/gcc/rust/typecheck/rust-tyty-call.cc
@@ -68,7 +68,6 @@ TypeCheckCallExpr::visit (ADTType &type)
 	  return;
 	}
 
-      delete res;
       i++;
     }

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

only message in thread, other threads:[~2023-02-21 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 12:01 [gcc r13-6224] gccrs: typecheck: Fix overzealous `delete` call Arthur Cohen

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).