reflect: remove stale comment in unpackEface

e.word (or more properly e.Data) is always a pointer now.

Change-Id: I6a6a6964b17797e234829691ced842ab431ec38f
Reviewed-on: https://go-review.googlesource.com/c/go/+/705535
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Mateusz Poliwczak 2025-09-20 08:14:49 +02:00
parent 3df27cd21a
commit 4b787c8c2b

View file

@ -156,7 +156,6 @@ func packEfaceData(v Value) unsafe.Pointer {
// unpackEface converts the empty interface i to a Value. // unpackEface converts the empty interface i to a Value.
func unpackEface(i any) Value { func unpackEface(i any) Value {
e := (*abi.EmptyInterface)(unsafe.Pointer(&i)) e := (*abi.EmptyInterface)(unsafe.Pointer(&i))
// NOTE: don't read e.word until we know whether it is really a pointer or not.
t := e.Type t := e.Type
if t == nil { if t == nil {
return Value{} return Value{}