diff options
| author | David Chase <drchase@google.com> | 2023-04-24 15:45:33 -0400 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2023-05-11 04:50:30 +0000 |
| commit | a2838ec5f20b56e94a18c873ab4b68397355e214 (patch) | |
| tree | e461b73e88af94584189441c48a436a2b0980339 /src/runtime/plugin.go | |
| parent | 48f8c5c0373886736d348acb1ce1601457da1d2e (diff) | |
| download | go-a2838ec5f20b56e94a18c873ab4b68397355e214.tar.xz | |
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 <khr@golang.org>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'src/runtime/plugin.go')
| -rw-r--r-- | src/runtime/plugin.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
