mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
3df27cd21a
commit
4b787c8c2b
1 changed files with 0 additions and 1 deletions
|
|
@ -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{}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue