runtime: use .Pointers() instead of .PtrBytes != 0

Change-Id: I512808d3cf91466eb6f2c21b49b39ff2e08a9b8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/605498
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
zhangyunhao 2024-08-15 10:04:00 +00:00 committed by Gopher Robot
parent 818515fd3e
commit 0320616db9

View File

@ -205,7 +205,7 @@ func dumptype(t *_type) {
dwritebyte('.')
dwrite(unsafe.Pointer(unsafe.StringData(name)), uintptr(len(name)))
}
dumpbool(t.Kind_&abi.KindDirectIface == 0 || t.PtrBytes != 0)
dumpbool(t.Kind_&abi.KindDirectIface == 0 || t.Pointers())
}
// dump an object.