From 439a69f4138f03cb54d7c519156be23b20437f73 Mon Sep 17 00:00:00 2001 From: visualfc Date: Tue, 11 Jun 2024 10:23:36 +0800 Subject: [PATCH] ssa: fix cvtNamed --- ssa/type_cvt.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ssa/type_cvt.go b/ssa/type_cvt.go index 11666472..a9314a68 100644 --- a/ssa/type_cvt.go +++ b/ssa/type_cvt.go @@ -128,6 +128,7 @@ func (p goTypes) cvtNamed(t *types.Named) (raw *types.Named, cvt bool) { named.SetUnderlying(tund) return named, true } + p.typs[unsafe.Pointer(t)] = unsafe.Pointer(t) return t, false }