diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2023-04-14 13:11:03 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-06-13 09:31:42 +0200 |
commit | 0c7c1cb41de9a3c73a6fe3e737f852670e297e2a (patch) | |
tree | 3225cdcf46eedc1d2f5d9e34e8419f50bcca7beb /gcc | |
parent | 067d80d8d59c910a4f6373a23e9fa6904fbb748b (diff) | |
download | gcc-0c7c1cb41de9a3c73a6fe3e737f852670e297e2a.zip gcc-0c7c1cb41de9a3c73a6fe3e737f852670e297e2a.tar.gz gcc-0c7c1cb41de9a3c73a6fe3e737f852670e297e2a.tar.bz2 |
ada: Simplify appending to a newly created list
Code cleanup; semantics is unaffected.
gcc/ada/
* exp_disp.adb (Make_Disp_Asynchronous_Select_Spec): Use a single call
to New_List.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/exp_disp.adb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/exp_disp.adb b/gcc/ada/exp_disp.adb index 494ead7..9381cee 100644 --- a/gcc/ada/exp_disp.adb +++ b/gcc/ada/exp_disp.adb @@ -2755,7 +2755,7 @@ package body Exp_Disp is Def_Id : constant Entity_Id := Make_Defining_Identifier (Loc, Name_uDisp_Asynchronous_Select); - Params : constant List_Id := New_List; + Params : List_Id; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); @@ -2770,7 +2770,7 @@ package body Exp_Disp is Set_Warnings_Off (B_Id); - Append_List_To (Params, New_List ( + Params := New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uT), @@ -2795,7 +2795,7 @@ package body Exp_Disp is Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uF), Parameter_Type => New_Occurrence_Of (Standard_Boolean, Loc), - Out_Present => True))); + Out_Present => True)); return Make_Procedure_Specification (Loc, |