]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Cleanups related to building of dispatch tables
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 25 Jun 2021 14:10:30 +0000 (16:10 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 20 Sep 2021 12:31:35 +0000 (12:31 +0000)
gcc/ada/

* exp_ch7.adb (Expand_N_Package_Declaration): Fix wording in
comment.
* exp_disp.adb (Mark_DT): Remove unnecessary initialization of
I_Depth.

gcc/ada/exp_ch7.adb
gcc/ada/exp_disp.adb

index 3cc9b3c4127eb627c890b1f33f4763a4d3df6c73..33e4f3a4ab36e7f836148ebdc7bb6c33949a176d 100644 (file)
@@ -6067,7 +6067,7 @@ package body Exp_Ch7 is
          Pop_Scope;
       end if;
 
-      --  Build dispatch tables of library level tagged types
+      --  Build dispatch tables of library-level tagged types
 
       if Tagged_Type_Expansion
         and then (Is_Compilation_Unit (Id)
index 647068f38206a37694667160d3d0a28bc636a671..079cd441ebba699e9a5d7e4094807afab8008ab8 100644 (file)
@@ -4712,7 +4712,7 @@ package body Exp_Disp is
       Exname             : Entity_Id;
       HT_Link            : Entity_Id;
       ITable             : Node_Id;
-      I_Depth            : Nat := 0;
+      I_Depth            : Nat;
       Iface_Table_Node   : Node_Id;
       Name_ITable        : Name_Id;
       Nb_Prim            : Nat := 0;