]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: allow multi-field structs to be stored directly in interfaces
authorKeith Randall <khr@golang.org>
Sun, 15 Jun 2025 03:10:50 +0000 (20:10 -0700)
committerKeith Randall <khr@golang.org>
Tue, 5 Aug 2025 16:18:31 +0000 (09:18 -0700)
commitcd55f86b8dcfc139ee5c17d32530ac9e758c8bc0
tree4b734bf249c12b9f3cbd1865f54cfd722e91508b
parent21ab0128b62658ba3e325586f45bb781bee55fda
cmd/compile: allow multi-field structs to be stored directly in interfaces

If the struct is a bunch of 0-sized fields and one pointer field.

Fixes #74092

Change-Id: I87c5d162c8c9fdba812420d7f9d21de97295b62c
Reviewed-on: https://go-review.googlesource.com/c/go/+/681937
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/ssa/_gen/generic.rules
src/cmd/compile/internal/ssa/expand_calls.go
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewritegeneric.go
src/cmd/compile/internal/types/type.go
src/internal/abi/type.go
src/reflect/type.go