Commit 07aa5e6f by Robert Dewar Committed by Arnaud Charlet

sem_util.adb: Minor code reorganization.

2015-05-26  Robert Dewar  <dewar@adacore.com>

	* sem_util.adb: Minor code reorganization.
	* sem_ch6.adb: Minor reformatting.

From-SVN: r223662
parent 70ce4679
2015-05-26 Robert Dewar <dewar@adacore.com>
* sem_util.adb: Minor code reorganization.
* sem_ch6.adb: Minor reformatting.
2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (maybe_pad_type): Do not apply adjustment to
......
......@@ -2133,6 +2133,7 @@ package body Sem_Util is
then
declare
Choice : constant Node_Id := First (Choices (Parent (N)));
begin
if Ekind (Entity (N)) = E_Discriminant then
return Skip;
......@@ -2194,9 +2195,10 @@ package body Sem_Util is
-- last (see comment in the body of traverse_func).
declare
Elmt : Elmt_Id := First_Elmt (Writable_Actuals_List);
Elmt : Elmt_Id;
begin
Elmt := First_Elmt (Writable_Actuals_List);
while Present (Elmt)
and then Entity (Node (Elmt)) /= Entity (N)
loop
......@@ -2210,7 +2212,7 @@ package body Sem_Util is
end if;
Error_Msg_NE
("value may be affected by call to& "
("value may be affected by call to & "
& "because order of evaluation is arbitrary",
Error_Node, Id);
return Abandon;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment