aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-08-12 12:15:53 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-09-06 09:14:22 +0200
commitd644c519672601c7a2c1627a875dcd8e16aed9c9 (patch)
treec42fc4000823c4a56caeb76f42a6fa1684e108e8
parentff6b2a3e70562f4250504fc10aa83eeb98e653d7 (diff)
downloadgcc-d644c519672601c7a2c1627a875dcd8e16aed9c9.zip
gcc-d644c519672601c7a2c1627a875dcd8e16aed9c9.tar.gz
gcc-d644c519672601c7a2c1627a875dcd8e16aed9c9.tar.bz2
[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.
-rw-r--r--gcc/ada/inline.adb5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb
index b0eb294..ca86fb8 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