aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2024-07-04 00:17:05 +0700
committerCuong Manh Le <cuong.manhle.vn@gmail.com>2024-07-23 23:49:48 +0000
commit3f9360345cc1e3286abbb7bf5fbce50481a0bbbd (patch)
treeee82f36bf60292a187fc5f9b4f3ac2c139a9e822 /src/encoding
parentd55253f5ddfc38bd45846583e07b5e4a97719931 (diff)
downloadgo-3f9360345cc1e3286abbb7bf5fbce50481a0bbbd.tar.xz
cmd/compile: prevent un-necessary wrapping in switch statement
Follow up discussion in CL 594575. The wrapping in "any" is only necessary if either casType or tagType is an interface, as "==" in this situation is implemented by upconverting to an interface anyway. Change-Id: I73da771d25685a23eec612ac696965c892db4764 Reviewed-on: https://go-review.googlesource.com/c/go/+/596555 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions