llgen bugfix

This commit is contained in:
xushiwei
2024-04-29 20:51:27 +08:00
parent a6d31ad8b8
commit fc893ba498
7 changed files with 19 additions and 40 deletions

View File

@@ -31,10 +31,10 @@ define void @main() {
_llgo_0:
call void @main.init()
%0 = call i32 @strlen(ptr @main.format)
call void (ptr, ...) @"github.com/goplus/llgo/cl/internal/libc.Printf"(ptr @main.format, i32 %0)
call void (ptr, ...) @printf(ptr @main.format, i32 %0)
ret void
}
declare i32 @strlen(ptr)
declare void @"github.com/goplus/llgo/cl/internal/libc.Printf"(ptr, ...)
declare void @printf(ptr, ...)