diff options
| author | qiulaidongfeng <2645477756@qq.com> | 2024-04-02 13:08:24 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-04-02 15:10:48 +0000 |
| commit | daaf1f222063174eb7f0938eee38f7f9f364263c (patch) | |
| tree | 4187c39caf622b61276555ab72ad00f1145ad280 /src/runtime/export_debug_test.go | |
| parent | e3ec1ca17e339e21ca50fbdb375b4294783bc385 (diff) | |
| download | go-daaf1f222063174eb7f0938eee38f7f9f364263c.tar.xz | |
all: use kind* of abi
For #59670
Change-Id: Id66e102f13e529dd041b68ce869026a56f0a1b9b
GitHub-Last-Rev: 43aa9376f72bc02a9d86518cdc99494a6b2f8573
GitHub-Pull-Request: golang/go#65564
Reviewed-on: https://go-review.googlesource.com/c/go/+/562298
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/export_debug_test.go')
| -rw-r--r-- | src/runtime/export_debug_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/export_debug_test.go b/src/runtime/export_debug_test.go index 7ee73ef07c..810a5a6435 100644 --- a/src/runtime/export_debug_test.go +++ b/src/runtime/export_debug_test.go @@ -32,13 +32,13 @@ func InjectDebugCall(gp *g, fn any, regArgs *abi.RegArgs, stackArgs any, tkill f } f := efaceOf(&fn) - if f._type == nil || f._type.Kind_&kindMask != kindFunc { + if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func { return nil, plainError("fn must be a function") } fv := (*funcval)(f.data) a := efaceOf(&stackArgs) - if a._type != nil && a._type.Kind_&kindMask != kindPtr { + if a._type != nil && a._type.Kind_&abi.KindMask != abi.Pointer { return nil, plainError("args must be a pointer or nil") } argp := a.data |
