mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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 <mdempsky@google.com>
This commit is contained in:
parent
ad832284c7
commit
dec5d99b71
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue