aboutsummaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2025-06-14 20:10:50 -0700
committerKeith Randall <khr@golang.org>2025-08-05 09:18:31 -0700
commitcd55f86b8dcfc139ee5c17d32530ac9e758c8bc0 (patch)
tree4b734bf249c12b9f3cbd1865f54cfd722e91508b /src/internal
parent21ab0128b62658ba3e325586f45bb781bee55fda (diff)
downloadgo-cd55f86b8dcfc139ee5c17d32530ac9e758c8bc0.tar.xz
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>
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/abi/type.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/internal/abi/type.go b/src/internal/abi/type.go
index 1920a8a37f..9f783a34c1 100644
--- a/src/internal/abi/type.go
+++ b/src/internal/abi/type.go
@@ -121,8 +121,8 @@ const (
TFlagGCMaskOnDemand TFlag = 1 << 4
// TFlagDirectIface means that a value of this type is stored directly
- // in the data field of an interface, instead of indirectly. Normally
- // this means the type is pointer-ish.
+ // in the data field of an interface, instead of indirectly.
+ // This flag is just a cached computation of Size_ == PtrBytes == goarch.PtrSize.
TFlagDirectIface TFlag = 1 << 5
// Leaving this breadcrumb behind for dlv. It should not be used, and no