[Ada] Fix comment about subprogram unnesting and unconstrained arrays
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 14 Dec 2021 22:10:44 +0000 (23:10 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 7 Jan 2022 16:24:09 +0000 (16:24 +0000)
gcc/ada/

* exp_unst.adb (Unnest_Subprogram): Sync comment with the
current code.

gcc/ada/exp_unst.adb

index dcae4b3..05f1148 100644 (file)
@@ -2093,7 +2093,8 @@ package body Exp_Unst is
 
                                  --  Build and insert the assignment:
                                  --    ARECn.nam := nam'Address
-                                 --  or else 'Access for unconstrained array
+                                 --  or else 'Unchecked_Access for
+                                 --  unconstrained array.
 
                                  if Needs_Fat_Pointer (Ent) then
                                     Attr := Name_Unchecked_Access;