]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't copy all type nodes for builtin functions
authorIan Lance Taylor <iant@golang.org>
Fri, 11 Mar 2016 21:04:07 +0000 (13:04 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 12 Mar 2016 00:30:44 +0000 (00:30 +0000)
commit1220ac27ceb6462a7489b10b3974ae8f742f3f3c
tree2aa3fa7a31288bf8aaa37f7f63b83c37b81ad17d
parent055dcb75665992454454894e87216a2aa2215e4f
cmd/compile: don't copy all type nodes for builtin functions

Only copy the ones that actually change.  Also combine deep and substAny
functions into one.  The Type.Copyany field is now unused, so remove it.

Passes toolstash -cmp.

Change-Id: Id28a9bf144ecf3e522aad00496f8a21ae2b74680
Reviewed-on: https://go-review.googlesource.com/20600
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/subr.go
src/cmd/compile/internal/gc/type.go