Skip to content

Commit

Permalink
Support LLVM 13+
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Aug 31, 2021
1 parent 26f508c commit 73ce101
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compiler/llvm_codegen_stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,11 @@ static inline void llvm_emit_asm_stmt(GenContext *c, Ast *ast)
scratch_buffer_to_string(), global_context.scratch_buffer_len,
ast->asm_stmt.is_volatile,
true,
LLVMInlineAsmDialectIntel);
LLVMInlineAsmDialectIntel
#if LLVM_VERSION_MAJOR > 12
, /* can throw */ false
#endif
);
LLVMBuildCall2(c->builder, asm_fn_type, asm_fn, NULL, 0, "");
}

Expand Down

0 comments on commit 73ce101

Please sign in to comment.