]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove incorrect comment
authorRonan Desplanques <desplanques@adacore.com>
Fri, 28 Feb 2025 11:24:04 +0000 (12:24 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 9 Jun 2025 06:32:03 +0000 (08:32 +0200)
This patchs removes a comment that was incorrect, as noted by a ???
comment that was right after and that this patch also removes.

gcc/ada/ChangeLog:

* atree.ads (Rewrite): Remove comment.

gcc/ada/atree.ads

index c8cc2bcf0c4fe2dade457faa42b1699c257e2480..14261692142129328d8403126659243032731d40 100644 (file)
@@ -536,11 +536,7 @@ package Atree is
    procedure Rewrite (Old_Node, New_Node : Node_Id);
    --  This is used when a complete subtree is to be replaced. Old_Node is the
    --  root of the old subtree to be replaced, and New_Node is the root of the
-   --  newly constructed replacement subtree. The actual mechanism is to swap
-   --  the contents of these two nodes fixing up the parent pointers of the
-   --  replaced node (we do not attempt to preserve parent pointers for the
-   --  original node).
-   --  ??? The above explanation is incorrect, instead Copy_Node is called.
+   --  newly constructed replacement subtree.
    --
    --  Note: New_Node may not contain references to Old_Node, for example as
    --  descendants, since the rewrite would make such references invalid. If