aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_debug_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/export_debug_test.go')
-rw-r--r--src/runtime/export_debug_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/export_debug_test.go b/src/runtime/export_debug_test.go
index 96f6fd9eea..94dc974804 100644
--- a/src/runtime/export_debug_test.go
+++ b/src/runtime/export_debug_test.go
@@ -33,13 +33,13 @@ func InjectDebugCall(gp *g, fn any, regArgs *abi.RegArgs, stackArgs any, tkill f
}
f := efaceOf(&fn)
- if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func {
+ if f._type == nil || f._type.Kind() != abi.Func {
return nil, plainError("fn must be a function")
}
fv := (*funcval)(f.data)
a := efaceOf(&stackArgs)
- if a._type != nil && a._type.Kind_&abi.KindMask != abi.Pointer {
+ if a._type != nil && a._type.Kind() != abi.Pointer {
return nil, plainError("args must be a pointer or nil")
}
argp := a.data