]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: support structural typing in unified IR
authorMatthew Dempsky <mdempsky@google.com>
Wed, 26 Jan 2022 21:26:45 +0000 (13:26 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 27 Jan 2022 00:03:31 +0000 (00:03 +0000)
commitf4aa021985e9ae4a9a395f8fbe32ad08d2bfda3b
tree55f9f87d2f9d9a8bd6d0524574f021e5ed91d94e
parentdb48840cfc5ea9f8067cd5238827965ea01cdde1
cmd/compile: support structural typing in unified IR

This CL updates unified IR to look at the structural type of a
composite literal type, rather than merely the underlying type, to
determine if it's a structure. This fixes a number of currently
failing regress test cases.

Updates #50833.

Change-Id: I11c040c77ec86c23e8ffefcf1ce1aed548687dc5
Reviewed-on: https://go-review.googlesource.com/c/go/+/381074
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/noder/writer.go
test/run.go