diff options
| author | Keith Randall <khr@golang.org> | 2021-11-03 09:40:32 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2021-11-03 17:56:16 +0000 |
| commit | d4e0e8e4a41e5e1e7d0359287a1015791ce778ed (patch) | |
| tree | 6a21b9d18becc7f89ce166260384ab17a7428648 /src/database | |
| parent | e0e6e4d23fe840c2c9b4caed30930cad6788b797 (diff) | |
| download | go-d4e0e8e4a41e5e1e7d0359287a1015791ce778ed.tar.xz | |
cmd/compile: make pointers to arrays their own shape
Pointers to arrays can be used to cast from a slice. We need
the shape of such type params to be different so we can compile
those casts correctly.
This is kind of a big hammer to fix #49295. It would be nice to
only do this when we know there's a []T->*[N]T conversion.
Fixes #49295
Change-Id: Ibda33057fab2dd28162537aab0f1244211d68e3f
Reviewed-on: https://go-review.googlesource.com/c/go/+/361135
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
Diffstat (limited to 'src/database')
0 files changed, 0 insertions, 0 deletions
