llgo/ssa: support string/cstring; panic

This commit is contained in:
xushiwei
2024-04-28 09:55:54 +08:00
parent 510f2f4769
commit 7039cb3bc2
7 changed files with 109 additions and 7 deletions

View File

@@ -16,8 +16,10 @@
package runtime
// Slice is the runtime representation of a slice.
type Slice = slice
func MakeEmptySlice() Slice {
// NilSlice returns a nil slice.
func NilSlice() Slice {
return Slice{nil, 0, 0}
}