go/src/cmd
Matthew Dempsky 64cd6faa13 [dev.unified] cmd/compile/internal/noder: simplify mixed tag/case RTTI wiring
The previous CL largely removed the need for worrying about mixed
tag/case comparisons in switch statements by ensuring they're always
converted to a common type, except for one annoying case: switch
statements with an implicit `true` tag, and case values of interface
type (which must be empty interface, because `bool`'s method set is
empty).

It would be simpler to have writer.go desugar the implicit `true`
itself, because we already handle explicit `true` correctly. But the
existing code already works fine, and I don't want to add further
complexity to writer.go until dictionaries and stenciling is done.

Change-Id: Ia8d44c425b1be7fc578cd570d15a7560fe9d2674
Reviewed-on: https://go-review.googlesource.com/c/go/+/418102
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2022-07-19 23:31:17 +00:00
..
addr2line
api
asm cmd/internal/obj/mips,s390x,riscv: save LR after decrementing SP 2022-06-29 16:36:06 +00:00
buildid cmd/buildid: reject rewriting legacy buildids 2022-06-06 14:30:53 +00:00
cgo cmd/go: prepend builtin prolog when checking for preamble errors 2022-06-25 19:07:01 +00:00
compile [dev.unified] cmd/compile/internal/noder: simplify mixed tag/case RTTI wiring 2022-07-19 23:31:17 +00:00
cover
dist cmd/dist: add package . to 'go test' commands 2022-06-16 21:58:40 +00:00
doc
fix
go cmd/go/internal/modindex: remove spurious field from index_format documentation 2022-06-30 19:32:09 +00:00
gofmt cmd/gofmt: use SkipObjectResolution with -s as well 2022-05-19 20:06:14 +00:00
internal cmd/internal/obj/arm64: save LR and SP in one instruction for small frames 2022-06-29 22:26:58 +00:00
link cmd/link: link against libsynchronization.a for -race on windows 2022-06-27 16:28:25 +00:00
nm cmd/nm, cmd/objdump, cmd/pprof: disassembly is not supported on loong64 2022-05-17 18:19:34 +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 cmd/trace: add basic documentation to main page 2022-06-22 02:40:04 +00:00
vendor all: update to current golang.org/x/sys revision 2022-06-22 16:47:18 +00:00
vet
README.vendor
go.mod all: update to current golang.org/x/sys revision 2022-06-22 16:47:18 +00:00
go.sum all: update to current golang.org/x/sys revision 2022-06-22 16:47:18 +00:00

README.vendor

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