Refactoring based on suggestions from GNAT frontend developers. Semantics
unaffected.
2018-05-25 Piotr Trojanek <trojanek@adacore.com>
gcc/ada/
* sem_util.adb (Iterate_Call_Parameters): Fix code convention and
assertions.
From-SVN: r260728
+2018-05-25 Piotr Trojanek <trojanek@adacore.com>
+
+ * sem_util.adb (Iterate_Call_Parameters): Fix code convention and
+ assertions.
+
2018-05-25 Hristian Kirtchev <kirtchev@adacore.com>
* einfo.adb, einfo.ads, exp_ch3.adb, exp_ch8.adb, exp_unst.adb,
Formal : Entity_Id := First_Formal (Get_Called_Entity (Call));
begin
- while Present (Formal) loop
- pragma Assert (Present (Formal));
+ while Present (Formal) and then Present (Actual) loop
Handle_Parameter (Formal, Actual);
+
Next_Formal (Formal);
Next_Actual (Actual);
end loop;
+ pragma Assert (No (Formal));
pragma Assert (No (Actual));
end Iterate_Call_Parameters;