From dec5d99b71ed8693ddecf2a979735a7f907a3490 Mon Sep 17 00:00:00 2001 From: LE Manh Cuong Date: Tue, 16 Apr 2019 01:51:14 +0700 Subject: [PATCH] cmd/compile: remove outdate comment of treecopy Since golang.org/cl/32487, treecopy does not handle non-iota ONONAME and iota ONONAME anymore. Change-Id: Icd5a81333a0d4d04adef2dbc58db92ce67aa0860 Reviewed-on: https://go-review.googlesource.com/c/go/+/172038 Reviewed-by: Matthew Dempsky --- src/cmd/compile/internal/gc/subr.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cmd/compile/internal/gc/subr.go b/src/cmd/compile/internal/gc/subr.go index 775147bff7..156e3c2c94 100644 --- a/src/cmd/compile/internal/gc/subr.go +++ b/src/cmd/compile/internal/gc/subr.go @@ -435,10 +435,9 @@ func nodstr(s string) *Node { } // treecopy recursively copies n, with the exception of -// ONAME, OLITERAL, OTYPE, and non-iota ONONAME leaves. -// Copies of iota ONONAME nodes are assigned the current -// value of iota_. If pos.IsKnown(), it sets the source -// position of newly allocated nodes to pos. +// ONAME, OLITERAL, OTYPE, and ONONAME leaves. +// If pos.IsKnown(), it sets the source position of newly +// allocated nodes to pos. func treecopy(n *Node, pos src.XPos) *Node { if n == nil { return nil -- 2.48.1