From a72fd98bf5f1e57fa2ebbacff832bd4f753fd874 Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Mon, 10 Jan 2022 20:59:57 +0100 Subject: [PATCH] [Ada] Remove redundant call to Set_Etype for attribute Bit_Order Node created by a call to New_Occurrence_Of (RTE (...), ...) has its Etype set. There is no need to follow it with a call to Set_Etype. Cleanup of various Analyze/Resolve routines. gcc/ada/ * sem_attr.adb (Analyze_Attribute): Don't call Set_Etype for Bit_Order attribute. --- gcc/ada/sem_attr.adb | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index 33179aa2f87..ca841d3f40f 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -3421,7 +3421,6 @@ package body Sem_Attr is New_Occurrence_Of (RTE (RE_Low_Order_First), Loc)); end if; - Set_Etype (N, RTE (RE_Bit_Order)); Resolve (N); -- Reset incorrect indication of staticness