From: Piotr Trojanek Date: Fri, 12 Aug 2022 10:15:53 +0000 (+0200) Subject: [Ada] Fix comment about mapping of parameters and inlining static funcs X-Git-Tag: basepoints/gcc-14~4737 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d644c519672601c7a2c1627a875dcd8e16aed9c9;p=thirdparty%2Fgcc.git [Ada] Fix comment about mapping of parameters and inlining static funcs Fix glitch in a cross-reference in comment. gcc/ada/ * inline.adb (Replace_Formal): Fix name of the referenced routine. --- diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb index b0eb2948774a..ca86fb852d65 100644 --- a/gcc/ada/inline.adb +++ b/gcc/ada/inline.adb @@ -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