From ff6b2a3e70562f4250504fc10aa83eeb98e653d7 Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Mon, 8 Aug 2022 16:18:38 +0200 Subject: [PATCH] [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. --- gcc/ada/exp_attr.adb | 1 - 1 file changed, 1 deletion(-) 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; -- 2.47.2