[Ada] Remove unnecessary guard for inserting non-empty list
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 13 Dec 2021 19:25:15 +0000 (20:25 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 7 Jan 2022 16:24:07 +0000 (16:24 +0000)
commite8a52167ea10797308ecc0497127ba0ce44b707b
treed6c64d26fc69e47ffdf0dbe38b15a88002dc08a5
parent3174b67eefb20421d43a6c96473fe41ee4cd1bf9
[Ada] Remove unnecessary guard for inserting non-empty list

gcc/ada/

* exp_ch3.adb (Expand_N_Object_Declaration): Remove unnecessary
guards.
* exp_ch4.adb (Expand_N_If_Expression): Likewise; clarify comment.
* exp_ch5.adb (Expand_N_If_Statement,
Expand_Iterator_Loop_Over_Container): Likewise.
* exp_ch9.adb (Expand_N_Task_Type_Declaration): Remove redundant
guard.
* freeze.adb (Freeze_All_Ent): Reduce scope of a local variable.
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch4.adb
gcc/ada/exp_ch5.adb
gcc/ada/exp_ch9.adb
gcc/ada/freeze.adb