]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix missing update source type in storeArgOrLoad
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 1 Nov 2021 07:32:39 +0000 (14:32 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 4 Nov 2021 02:12:52 +0000 (02:12 +0000)
commitbd49a998bf68609259c155cd7b9f4ed76d948a0d
tree1f40d262725851f3bd931d5ba288598242951112
parentd9bb5f6f109a4342c52958f30acfc3f3d633ee4f
cmd/compile: fix missing update source type in storeArgOrLoad

After removing trivial wrapper types, the source needs to be updated
with new type, otherwise, it leads to mismatch between field offset and
the source type for selecting struct/array.

Fixes #49249

Change-Id: I26f9440bcb2e78bcf0617afc21d9d40cdbe4aca6
Reviewed-on: https://go-review.googlesource.com/c/go/+/360057
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>
src/cmd/compile/internal/ssa/expand_calls.go
test/fixedbugs/issue49249.go [new file with mode: 0644]