diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-26 11:44:25 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-26 11:44:25 +0100 |
| commit | 72cc92dc5cf9e96b484020e3036487d8548f4f52 (patch) | |
| tree | 0735619b46d73944c95cd6fc138ebe613850358d /src/llvm_backend_expr.cpp | |
| parent | c9e6862332fc3b0beb8b939d5dae9bba96bc6879 (diff) | |
Add `llvm_get_inline_asm` for future compatibility
Diffstat (limited to 'src/llvm_backend_expr.cpp')
| -rw-r--r-- | src/llvm_backend_expr.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp index 214da9e10..6737c97bc 100644 --- a/src/llvm_backend_expr.cpp +++ b/src/llvm_backend_expr.cpp @@ -2510,11 +2510,7 @@ lbValue lb_build_expr(lbProcedure *p, Ast *expr) { } LLVMTypeRef func_type = LLVMGetElementType(lb_type(p->module, t)); - LLVMValueRef the_asm = LLVMGetInlineAsm(func_type, - cast(char *)asm_string.text, cast(size_t)asm_string.len, - cast(char *)constraints_string.text, cast(size_t)constraints_string.len, - ia->has_side_effects, ia->is_align_stack, dialect - ); + LLVMValueRef the_asm = llvm_get_inline_asm(func_type, asm_string, constraints_string, ia->has_side_effects, ia->has_side_effects, dialect); GB_ASSERT(the_asm != nullptr); return {the_asm, t}; case_end; |