diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp index 33813501f3c621e4690172c73153766ad095e32a..c7f429ef4952144c17c2df1f7a826c1416a1f5ab 100644 --- a/src/stage1/codegen.cpp +++ b/src/stage1/codegen.cpp @@ -8391,7 +8391,7 @@ static void do_code_gen(CodeGen *g) { assert(!g->errors.length); if (buf_len(&g->global_asm) != 0) { - LLVMSetModuleInlineAsm(g->module, buf_ptr(&g->global_asm)); + LLVMSetModuleInlineAsm2(g->module, buf_ptr(&g->global_asm), buf_len(&g->global_asm)); } while (g->type_resolve_stack.length != 0) {