]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove misleading comment
authorRonan Desplanques <desplanques@adacore.com>
Tue, 4 Mar 2025 13:24:32 +0000 (14:24 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 9 Jun 2025 06:32:06 +0000 (08:32 +0200)
This patch removes a comment that misleadingly presented a condition as
being met only in rare situations, while it's in fact satisfied in very
basic cases such as simple object declarations.

gcc/ada/ChangeLog:

* sem_util.adb (Enter_Name): Remove comment.

gcc/ada/sem_util.adb

index 40e3da36c201f2d66c221ec964fc2349d13d5e5e..523aff33f95a927000d2e937ea5a44b0f701c7b6 100644 (file)
@@ -8089,9 +8089,6 @@ package body Sem_Util is
       if Ekind (Def_Id) in E_Discriminant | E_Component then
          null;
 
-      --  If a type is already set, leave it alone (happens when a type
-      --  declaration is reanalyzed following a call to the optimizer).
-
       elsif Present (Etype (Def_Id)) then
          null;