]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: make all pointer types have the same shape
authorKeith Randall <khr@golang.org>
Fri, 30 Jul 2021 21:00:27 +0000 (14:00 -0700)
committerKeith Randall <khr@golang.org>
Sat, 31 Jul 2021 17:03:07 +0000 (17:03 +0000)
commit0b8a9ccb25cd9b8f78eb47b1934522af3fb4108f
treecb79c4ab8790ab8f71fe262dd76eb81e602ce210
parent7bed50e667cf1b4ba5b2ec7ca699c835c696e454
[dev.typeparams] cmd/compile: make all pointer types have the same shape

Except unsafe.Pointer. It has a different Kind, which makes it trickier.

Change-Id: I12582afb6e591bea35da9e43ac8d141ed19532a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/338749
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/typecheck/subr.go
src/cmd/compile/internal/types/identity.go
test/typeparam/shape1.go
test/typeparam/shape1.out