The subexpressions this patch removes were clearly useless given the
test for "No (Scheme)" in a preceding condition.
gcc/ada/ChangeLog:
* exp_ch5.adb (Expand_N_Loop_Statement): Remove useless subexpressions.
-- ...
-- end loop
- elsif Present (Scheme)
- and then Present (Condition_Actions (Scheme))
+ elsif Present (Condition_Actions (Scheme))
and then Present (Condition (Scheme))
then
declare
-- Here to deal with iterator case
- elsif Present (Scheme)
- and then Present (Iterator_Specification (Scheme))
- then
+ elsif Present (Iterator_Specification (Scheme)) then
Expand_Iterator_Loop (N);
-- An iterator loop may generate renaming declarations for elements