llgo/ssa: MakeInterface

This commit is contained in:
xushiwei
2024-04-29 22:57:40 +08:00
parent 85bb1302ca
commit f64abf37ab
7 changed files with 40 additions and 14 deletions

View File

@@ -20,6 +20,8 @@ import (
"unsafe"
)
// -----------------------------------------------------------------------------
// Slice is the runtime representation of a slice.
type Slice struct {
array unsafe.Pointer
@@ -31,3 +33,5 @@ type Slice struct {
func NilSlice() Slice {
return Slice{nil, 0, 0}
}
// -----------------------------------------------------------------------------