diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2021-11-05 20:30:38 +0700 |
|---|---|---|
| committer | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2021-11-05 16:35:00 +0000 |
| commit | f249fa27a9117dd5986f35463fc6a1467ecc72bb (patch) | |
| tree | b472ac380ef67c3d9b14ba44c2f4d1e27d24aa9f /src/runtime/mpagealloc.go | |
| parent | a0d661ab0ff896abe45d6d4e79cb71df233c5319 (diff) | |
| download | go-f249fa27a9117dd5986f35463fc6a1467ecc72bb.tar.xz | |
cmd/compile: only update source type when processing struct/array
CL 360057 fixed missing update source type in storeArgOrLoad. However,
we should only update the type when processing struct/array. If we
update the type right before calling storeArgOrLoad, we may generate a
value with invalid type, e.g, OpStructSelect with non-struct type.
Fixes #49378
Change-Id: Ib7e10f72f818880f550aae5c9f653db463ce29b0
Reviewed-on: https://go-review.googlesource.com/c/go/+/361594
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/mpagealloc.go')
0 files changed, 0 insertions, 0 deletions
