llgo/ssa: Slice, IndexAddr bugfix

This commit is contained in:
xushiwei
2024-04-30 16:15:36 +08:00
parent 02afd1d73a
commit 40a9e00d4c
6 changed files with 37 additions and 12 deletions

View File

@@ -44,4 +44,9 @@ func SliceLen(s Slice) int {
return s.len
}
// SliceData returns the data pointer of a slice.
func SliceData(s Slice) unsafe.Pointer {
return s.data
}
// -----------------------------------------------------------------------------