From: Ronan Desplanques Date: Tue, 4 Mar 2025 13:24:32 +0000 (+0100) Subject: ada: Remove misleading comment X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff9781d1dc58f6a015c51bedc655ceaa3858b62d;p=thirdparty%2Fgcc.git ada: Remove misleading comment 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. --- diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 40e3da36c20..523aff33f95 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -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;