Commit 61d1b085 by Hristian Kirtchev Committed by Arnaud Charlet

exp_unst.adb: Minor reformatting.

2016-04-20  Hristian Kirtchev  <kirtchev@adacore.com>

	* exp_unst.adb: Minor reformatting.

From-SVN: r235259
parent 18431dc5
2016-04-20 Hristian Kirtchev <kirtchev@adacore.com> 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
* exp_unst.adb: Minor reformatting.
2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
* exp_ch4.adb (Expand_Allocator_Expression): Ensure that the * exp_ch4.adb (Expand_Allocator_Expression): Ensure that the
tag assignment and adjustment preceed the accessibility check. tag assignment and adjustment preceed the accessibility check.
* exp_ch7.adb (Is_Subprogram_Call): Reimplemented. * exp_ch7.adb (Is_Subprogram_Call): Reimplemented.
......
...@@ -145,6 +145,7 @@ package body Exp_Unst is ...@@ -145,6 +145,7 @@ package body Exp_Unst is
function Get_Level (Subp : Entity_Id; Sub : Entity_Id) return Nat is function Get_Level (Subp : Entity_Id; Sub : Entity_Id) return Nat is
Lev : Nat; Lev : Nat;
S : Entity_Id; S : Entity_Id;
begin begin
Lev := 1; Lev := 1;
S := Sub; S := Sub;
...@@ -152,8 +153,8 @@ package body Exp_Unst is ...@@ -152,8 +153,8 @@ package body Exp_Unst is
if S = Subp then if S = Subp then
return Lev; return Lev;
else else
S := Enclosing_Subprogram (S);
Lev := Lev + 1; Lev := Lev + 1;
S := Enclosing_Subprogram (S);
end if; end if;
end loop; end loop;
end Get_Level; end Get_Level;
......
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