mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Support LLVM 13+
This commit is contained in:
@@ -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, "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user