[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.
This commit is contained in:
Piotr Trojanek 2022-08-08 16:18:38 +02:00 committed by Marc Poulhiès
parent eae9f5d257
commit ff6b2a3e70

View File

@ -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;