llgo/ssa: checkExpr to auto convert funcPtr into closure

This commit is contained in:
xushiwei
2024-05-04 17:25:13 +08:00
parent 9f25d73826
commit c0ef1598c9
7 changed files with 52 additions and 58 deletions

View File

@@ -1,8 +1,7 @@
; ModuleID = 'main'
source_filename = "main"
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, %"github.com/goplus/llgo/internal/runtime.Closure", ptr, i32, i32 }
%"github.com/goplus/llgo/internal/runtime.Closure" = type { ptr, ptr }
%"github.com/goplus/llgo/internal/abi.Type" = type { i64, i64, i32, i8, i8, i8, i8, { ptr, ptr }, ptr, i32, i32 }
@main.basicTypes = global ptr null
@"main.init$guard" = global ptr null