llgo/ssa: unsafeEface

This commit is contained in:
xushiwei
2024-05-22 13:47:21 +08:00
parent c19786bdfb
commit 6442ab2f20
3 changed files with 38 additions and 23 deletions

View File

@@ -39,12 +39,6 @@ func MakeAnyString(data string) Eface {
}
}
func MakeAny(typ *Type, data unsafe.Pointer) Eface {
return eface{
_type: typ, data: data,
}
}
func I2Int(v Eface, t *Type) uintptr {
if v._type == t {
return uintptr(v.data)