]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: preserve 'any' type alias in unified IR
authorMatthew Dempsky <mdempsky@google.com>
Wed, 8 Dec 2021 19:12:50 +0000 (11:12 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 9 Dec 2021 19:01:08 +0000 (19:01 +0000)
commit8ff254e30ba9d9c13747fe42213c3f54b47c58e7
tree68ba5161bf054b790798a1f14d17f6772ffafee7
parentece493eb831a7797d03d60b44b817caf1c63a0ab
cmd/compile: preserve 'any' type alias in unified IR

When exporting the "any" empty interface type for unified IR, write it
out as a reference to the "any" alias, rather than to the underlying
empty interface. This matches how "byte" and "rune" are handled.

Verified to fix the issue demonstrated in CL 369975.

Change-Id: Ic2844b0acc3b17c20b3a40aaf262f62ec653eb5a
Reviewed-on: https://go-review.googlesource.com/c/go/+/370374
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/noder/writer.go