aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2021-10-26 12:53:47 +0100
committerGitHub <noreply@github.com>2021-10-26 12:53:47 +0100
commit549a383cf06ad45edd634e67c27a1246323a9d8c (patch)
treeeb1febdc44fd5e594bf7b4f7378961365deabcc9 /src/llvm_backend_expr.cpp
parent12ebd422c61882beb2921310b378e06929f7f22e (diff)
parentce8ddd0c3f7e7c6387297420f1b05ab3674a5631 (diff)
Merge branch 'master' into new-matrix-type
Diffstat (limited to 'src/llvm_backend_expr.cpp')
-rw-r--r--src/llvm_backend_expr.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp
index ad2c609ef..c9827ae3a 100644
--- a/src/llvm_backend_expr.cpp
+++ b/src/llvm_backend_expr.cpp
@@ -3111,11 +3111,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;