]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove last manual node copies
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 5 Apr 2018 13:45:38 +0000 (14:45 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 10 Apr 2018 15:25:31 +0000 (15:25 +0000)
commit60fee0153ff9ae2f03e5db9fa8cf700cd953bf8d
treed051a316175d4785afc53bf451310403d67c21fd
parent7cb7d62950630a5a878ee6665258275fc935ef2f
cmd/compile: remove last manual node copies

When I added the Node.copy method, I converted most of the occurrences
but missed a few.

One of them, used only for gdata, was an unnecessary copy given that
gdata does not modify the node it is passed.

No allocation changes in compilebench.

Passes toolstash -cmp on std cmd.

Change-Id: I7fba5212377b75c6d6b3785e594a30568ff0732e
Reviewed-on: https://go-review.googlesource.com/104937
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/const.go
src/cmd/compile/internal/gc/sinit.go