llgo/ssa: unsafeInterface; runtime.PointerTo

This commit is contained in:
xushiwei
2024-05-27 08:07:34 +08:00
parent 12b0d81dda
commit 165a99fd83
8 changed files with 220 additions and 89 deletions

View File

@@ -274,6 +274,7 @@ func (p Program) toType(raw types.Type) Type {
if t.Empty() {
return &aType{p.rtEface(), typ, vkEface}
}
return &aType{p.rtIface(), typ, vkIface}
case *types.Slice:
return &aType{p.rtSlice(), typ, vkSlice}
case *types.Map: