go/src/cmd
Keith Randall 2493072db6 cmd/compile: avoid assignment conversion in append(a, b...)
There's no need for a and b to match types. The typechecker already
ensured that a and b are both slices with the same base type, or
a and b are (possibly named) []byte and string.

The optimization to treat append(b, make([], ...)) as a zeroing
slice extension doesn't fire when there's a OCONVNOP wrapping the make.
Fixes #53888

Change-Id: Ied871ed0bbb8e4a4b35d280c71acbab8103691bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/418475
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
2022-08-08 16:58:57 +00:00
..
addr2line
api
asm all: clean up TODO after fixing issue 44505 2022-08-04 20:35:21 +00:00
buildid cmd/buildid: reject rewriting legacy buildids 2022-06-06 14:30:53 +00:00
cgo cmd/cgo: allow cgo to pass strings or []bytes bigger than 1<<30 2022-07-20 23:32:27 +00:00
compile cmd/compile: avoid assignment conversion in append(a, b...) 2022-08-08 16:58:57 +00:00
cover
dist cmd/dist: do not run on ppc64le 2022-08-05 19:51:08 +00:00
doc
fix
go go/build: add GO$GOARCH-based ToolTags 2022-08-08 14:39:20 +00:00
gofmt cmd/gofmt: use SkipObjectResolution with -s as well 2022-05-19 20:06:14 +00:00
internal cmd/dist: force stackGuardMultiplierDefault to 1 2022-08-05 15:19:31 +00:00
link cmd/link: use correct path for dynamic loader on ppc64le 2022-08-05 14:53:13 +00:00
nm cmd/nm: don't rely on an erroneous install target in tests 2022-07-11 19:01:02 +00:00
objdump all: fix spelling 2022-05-17 19:51:29 +00:00
pack
pprof all: gofmt main repo 2022-05-19 15:49:05 +00:00
test2json
trace internal/trace: don't report regions on system goroutines 2022-07-11 21:24:38 +00:00
vendor all: update vendored golang.org/x/{net,tools} for Go 1.20 development 2022-08-05 19:54:32 +00:00
vet
README.vendor
go.mod all: update vendored golang.org/x/{net,tools} for Go 1.20 development 2022-08-05 19:54:32 +00:00
go.sum all: update vendored golang.org/x/{net,tools} for Go 1.20 development 2022-08-05 19:54:32 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.