[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.
This commit is contained in:
Piotr Trojanek 2022-01-10 20:59:57 +01:00 committed by Pierre-Marie de Rodat
parent 8e13160b10
commit a72fd98bf5

View file

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