Commit 1d3ceac770

xackus <14938807+xackus@users.noreply.github.com>
2020-11-29 20:29:09
stage1: LLVMSetModuleInlineAsm is deprecated
1 parent 0a6ba6f
Changed files (1)
src
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) {