fix Alloc size

This commit is contained in:
xushiwei
2024-05-01 16:59:42 +08:00
parent 62f6542ca9
commit 3cc3b864af
3 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ define void @main() {
_llgo_0:
call void @"github.com/goplus/llgo/internal/runtime.init"()
call void @main.init()
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.Alloc"(i64 16)
%0 = call ptr @"github.com/goplus/llgo/internal/runtime.Alloc"(i64 5)
%1 = getelementptr inbounds { i32, i1 }, ptr %0, i32 0, i32 0
%2 = getelementptr inbounds { i32, i1 }, ptr %0, i32 0, i32 1
store i32 100, ptr %1, align 4