ssa: fix setDirectIface

This commit is contained in:
visualfc
2024-07-08 20:19:25 +08:00
parent ccf915e798
commit 73b42f924d
15 changed files with 103 additions and 0 deletions

View File

@@ -410,6 +410,10 @@ func (v eface) Elem() eface {
panic("invalid eface elem")
}
func SetDirectIface(t *abi.Type) {
t.Kind_ |= abi.KindDirectIface
}
func isDirectIface(t *_type) bool {
return t.Kind_&abi.KindDirectIface != 0
}