]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: correct leaf type when "selecting" singleton register-sized struct
authorDavid Chase <drchase@google.com>
Fri, 2 Oct 2020 18:53:48 +0000 (14:53 -0400)
committerDavid Chase <drchase@google.com>
Tue, 6 Oct 2020 15:37:42 +0000 (15:37 +0000)
commitf8d80977b784fd4879963e61dc9fca1fc9bf2193
tree27a7b8f1fef2f0cd1c61cc20ab83a14eb0811003
parentd2a80f3fb5b44450e0b304ac5a718f99c053d82a
cmd/compile: correct leaf type when "selecting" singleton register-sized struct

Two part fix:
1) bring the type "correction" forward from a later CL in the expand calls series
2) when a leaf-selwect is rewritten in place, update the type (it might have been
   changed by the type correction in 1).

Fixes #41736.

Change-Id: Id097efd10481bf0ad92aaead81a7207221c144b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/259203
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/expand_calls.go
test/fixedbugs/issue41736.go [new file with mode: 0644]