[committed,071/103] gccrs: typecheck: Fix overzealous `delete` call

Message ID 20230221120230.596966-72-arthur.cohen@embecosm.com
State Unresolved
Headers
Series [committed,001/103] gccrs: Fix missing dead code analysis ICE on local enum definition |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Arthur Cohen Feb. 21, 2023, 12:02 p.m. UTC
  From: Arthur Cohen <arthur.cohen@embecosm.com>

gcc/rust/ChangeLog:

	* typecheck/rust-tyty-call.cc (TypeCheckCallExpr::visit): Fix extra call
	to `delete`.
---
 gcc/rust/typecheck/rust-tyty-call.cc | 1 -
 1 file changed, 1 deletion(-)
  

Patch

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++;
     }