]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Fix comment about mapping of parameters and inlining static funcs
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 12 Aug 2022 10:15:53 +0000 (12:15 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 6 Sep 2022 07:14:22 +0000 (09:14 +0200)
Fix glitch in a cross-reference in comment.

gcc/ada/

* inline.adb (Replace_Formal): Fix name of the referenced routine.

gcc/ada/inline.adb

index b0eb2948774ad0e308a24cc597065fc8a9cbd2da..ca86fb852d65b05750ec4716f312924d427ac68b 100644 (file)
@@ -4699,8 +4699,9 @@ package body Inline is
    procedure Inline_Static_Function_Call (N : Node_Id; Subp : Entity_Id) is
 
       function Replace_Formal (N : Node_Id) return Traverse_Result;
-      --  Replace each occurrence of a formal with the corresponding actual,
-      --  using the mapping created by Establish_Mapping_For_Inlined_Call.
+      --  Replace each occurrence of a formal with the
+      --  corresponding actual, using the mapping created
+      --  by Establish_Actual_Mapping_For_Inlined_Call.
 
       function Reset_Sloc (Nod : Node_Id) return Traverse_Result;
       --  Reset the Sloc of a node to that of the call itself, so that errors