Replace "not Is_Non_Empty_List (...)" with "Is_Empty_List (...)".
Code cleanup; semantics is unaffected.
gcc/ada/
* exp_ch5.adb (Update_Choice_Index): Simplify condition.
* sem_ch8.adb (Attribute_Renaming): Likewise.
-- is ok here.
--
pragma Assert
- (not Is_Non_Empty_List
- (Component_Associations (Pattern)));
+ (Is_Empty_List (Component_Associations (Pattern)));
declare
Agg_Length : constant Node_Id :=
-- have at least one formal parameter, with the exceptions of the GNAT
-- attribute 'Img, which GNAT treats as renameable.
- if not Is_Non_Empty_List (Parameter_Specifications (Spec)) then
+ if Is_Empty_List (Parameter_Specifications (Spec)) then
if Aname /= Name_Img then
Error_Msg_N
("subprogram renaming an attribute must have formals", N);