]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: fix (*T)(nil)-to-interface conversion bug
authorAlan Donovan <adonovan@google.com>
Mon, 23 Oct 2023 22:45:06 +0000 (18:45 -0400)
committerRobert Findley <rfindley@google.com>
Tue, 24 Oct 2023 13:47:39 +0000 (13:47 +0000)
commit6f87db509a929026ff48a47180f4ec832afc4a86
tree4023316dc3481475020cb98d2b661b9f9d92b1e7
parentf09db2bb9331f4b31afb867173b1773e6494af27
go/types: fix (*T)(nil)-to-interface conversion bug

A nil *gcSizes pointer should be converted to a nil Sizes interface.

Updates #63701

Change-Id: I62e00fecf303ce0ae529f1a75c14c7ef2576a58f
Reviewed-on: https://go-review.googlesource.com/c/go/+/537255
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/gcsizes.go
src/cmd/compile/internal/types2/sizes.go
src/go/types/gcsizes.go
src/go/types/sizes.go