exp_unst.adb: Minor reformatting.
authorHristian Kirtchev <kirtchev@adacore.com>
Wed, 20 Apr 2016 10:38:24 +0000 (10:38 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 20 Apr 2016 10:38:24 +0000 (12:38 +0200)
2016-04-20  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_unst.adb: Minor reformatting.

From-SVN: r235259

gcc/ada/ChangeLog
gcc/ada/exp_unst.adb

index f6f5dc3..21637a7 100644 (file)
@@ -1,5 +1,9 @@
 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
        tag assignment and adjustment preceed the accessibility check.
        * exp_ch7.adb (Is_Subprogram_Call): Reimplemented.
index 668f596..6351633 100644 (file)
@@ -145,6 +145,7 @@ package body Exp_Unst is
    function Get_Level (Subp : Entity_Id; Sub : Entity_Id) return Nat is
       Lev : Nat;
       S   : Entity_Id;
+
    begin
       Lev := 1;
       S   := Sub;
@@ -152,8 +153,8 @@ package body Exp_Unst is
          if S = Subp then
             return Lev;
          else
-            S := Enclosing_Subprogram (S);
             Lev := Lev + 1;
+            S   := Enclosing_Subprogram (S);
          end if;
       end loop;
    end Get_Level;