llgo/ssa: builder.Alloc sizeof(t) bugfix
This commit is contained in:
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"github.com/goplus/llgo/internal/abi"
|
||||
"github.com/goplus/llgo/internal/runtime"
|
||||
"github.com/goplus/llgo/internal/runtime/c"
|
||||
)
|
||||
|
||||
@@ -29,7 +28,5 @@ func basicType(kind abi.Kind) *abi.Type {
|
||||
|
||||
func main() {
|
||||
t := Basic(abi.String)
|
||||
t2 := runtime.Basic(abi.String)
|
||||
c.Printf(c.Str("Kind: %d, Size: %d\n"), int(t.Kind_), t.Size_)
|
||||
c.Printf(c.Str("Kind: %d, Size: %d\n"), int(t2.Kind_), t2.Size_)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user