From f06899303c8dae36d3e83e133e30af3678ff2c14 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sat, 25 May 2024 21:47:02 +0800 Subject: [PATCH] gblarray --- cl/_testrt/gblarray/out.ll | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cl/_testrt/gblarray/out.ll b/cl/_testrt/gblarray/out.ll index c722d6d0..2fc333fb 100644 --- a/cl/_testrt/gblarray/out.ll +++ b/cl/_testrt/gblarray/out.ll @@ -1,7 +1,8 @@ ; ModuleID = 'main' source_filename = "main" -%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, i32, i32 } +%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, %"github.com/goplus/llgo/internal/abi.Name", ptr } +%"github.com/goplus/llgo/internal/abi.Name" = type { ptr } @main.basicTypes = global [25 x ptr] undef @"main.init$guard" = global ptr null @@ -19,7 +20,7 @@ _llgo_0: define ptr @main.basicType(i64 %0) { _llgo_0: - %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 56) + %1 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 64) %2 = getelementptr inbounds %"github.com/goplus/llgo/internal/abi.Type", ptr %1, i32 0, i32 0 %3 = getelementptr inbounds i64, ptr @main.sizeBasicTypes, i64 %0 %4 = load i64, ptr %3, align 4