]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compiler: make decompose shortcuts apply for PtrShaped, not just Ptr
authorDavid Chase <drchase@google.com>
Wed, 11 Oct 2023 21:28:02 +0000 (17:28 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 12 Oct 2023 00:48:31 +0000 (00:48 +0000)
commiteb832afb2310b71db420943d91625552748ae5e6
tree4c3b2a3ff3a5c1bbc2a934b16f4828b0a7da801a
parent872d7181f4084461441787c70ffd1354314987af
cmd/compiler: make decompose shortcuts apply for PtrShaped, not just Ptr

The immediate-data interface shortcuts also apply to pointer-shaped
things like maps, channels, and functions.

Fixes #63505.

Change-Id: I43982441bf523f53e9e5d183e95aea7c6655dd6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/534657
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: David Chase <drchase@google.com>
Auto-Submit: David Chase <drchase@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/ssa/_gen/dec.rules
src/cmd/compile/internal/ssa/rewritedec.go
test/fixedbugs/issue63505.go [new file with mode: 0644]