diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2021-06-11 03:47:07 -0700 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2021-06-11 14:47:33 +0000 |
| commit | 61888d47c4c49afc2e4ac3aeea42e83cda84d37b (patch) | |
| tree | 4ff8c8d518fc41dff7888b68e97b5d7ea0ba5ac9 /src/runtime/malloc.go | |
| parent | 62e32dd386103b5ee8dfe921eb791b14277843b5 (diff) | |
| download | go-61888d47c4c49afc2e4ac3aeea42e83cda84d37b.tar.xz | |
[dev.typeparams] cmd/compile: allow embedding Type.Vargen into Sym.Name
Unified IR currently works by hoisting local type definitions to
package scope, which requires giving them a unique name. Its current
solution is to directly embed the ·N suffix in Sym.Name, rather than
set Type.Vargen. This CL extends types/fmt.go to support trimming this
suffix again when appropriate.
Longer term, I want to revisit this hack, but this seemed like the
least invasive solution while also handling generics and local types.
Change-Id: If99fcdcc1e19e37d5887de3b021c256a3fe46b98
Reviewed-on: https://go-review.googlesource.com/c/go/+/327052
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'src/runtime/malloc.go')
0 files changed, 0 insertions, 0 deletions
