zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1d3ceac7707ccacc3a679efebdf0dc636470f44a (tree)
parent 0a6ba6f666e51eee612b97628e2488a0fdb18210
Author: xackus <14938807+xackus@users.noreply.github.com>
Date:   Sun, 29 Nov 2020 20:29:09 +0100

stage1: LLVMSetModuleInlineAsm is deprecated

Diffstat:
Msrc/stage1/codegen.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) {