From: Piotr Trojanek Date: Mon, 8 Aug 2022 14:18:38 +0000 (+0200) Subject: [Ada] Cleanup unnecessary shadowing in expansion of attribute Old X-Git-Tag: basepoints/gcc-14~4738 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff6b2a3e70562f4250504fc10aa83eeb98e653d7;p=thirdparty%2Fgcc.git [Ada] Cleanup unnecessary shadowing in expansion of attribute Old Code cleanup; semantics is unaffected. gcc/ada/ * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Old]): Remove unnecessary local constant that was shadowing another constant with the same initial value. --- diff --git a/gcc/ada/exp_attr.adb b/gcc/ada/exp_attr.adb index c4187c9f5d63..21c482822a18 100644 --- a/gcc/ada/exp_attr.adb +++ b/gcc/ada/exp_attr.adb @@ -4884,7 +4884,6 @@ package body Exp_Attr is --------- when Attribute_Old => Old : declare - Typ : constant Entity_Id := Etype (N); CW_Temp : Entity_Id; CW_Typ : Entity_Id; Decl : Node_Id;