From a2838ec5f20b56e94a18c873ab4b68397355e214 Mon Sep 17 00:00:00 2001 From: David Chase Date: Mon, 24 Apr 2023 15:45:33 -0400 Subject: runtime: redefine _type to abi.Type; add rtype for methods. Change-Id: I1c478b704d84811caa209006c657dda82d9c4cf9 Reviewed-on: https://go-review.googlesource.com/c/go/+/488435 Reviewed-by: Keith Randall Run-TryBot: David Chase TryBot-Result: Gopher Robot Reviewed-by: Keith Randall --- src/runtime/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/plugin.go') diff --git a/src/runtime/plugin.go b/src/runtime/plugin.go index d2ad1ed21c..690f85750b 100644 --- a/src/runtime/plugin.go +++ b/src/runtime/plugin.go @@ -79,7 +79,7 @@ func plugin_lastmoduleinit() (path string, syms map[string]any, initTasks []*ini syms = make(map[string]any, len(md.ptab)) for _, ptab := range md.ptab { symName := resolveNameOff(unsafe.Pointer(md.types), ptab.name) - t := (*_type)(unsafe.Pointer(md.types)).typeOff(ptab.typ) + t := toRType((*_type)(unsafe.Pointer(md.types))).typeOff(ptab.typ) // TODO can this stack of conversions be simpler? var val any valp := (*[2]unsafe.Pointer)(unsafe.Pointer(&val)) (*valp)[0] = unsafe.Pointer(t) -- cgit v1.3-5-g9baa