]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove dead assignment
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 6 May 2025 07:03:44 +0000 (09:03 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 1 Jul 2025 08:29:40 +0000 (10:29 +0200)
The assignment sets the Etype of a node to itsef.

gcc/ada/ChangeLog:

* sem_ch4.adb (Analyze_Allocator): Do not set Etype to itself.

gcc/ada/sem_ch4.adb

index ec48edda9f40dbdc0c852a5517dbd331ea14e2ca..89beb2b9a7e019ce006386f010d3e51e36dbbfea 100644 (file)
@@ -594,8 +594,6 @@ package body Sem_Ch4 is
          --  part of the allocator. It is fully analyzed and resolved when
          --  the allocator is resolved with the context type.
 
-         Set_Etype  (E, Type_Id);
-
       --  Case where allocator has a subtype indication
 
       else