diff options
| author | gingerBill <bill@gingerbill.org> | 2022-05-30 15:13:45 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-05-30 15:13:45 +0100 |
| commit | a0babefe55568c400835a5984db676d9f650a8b4 (patch) | |
| tree | fdd730094f4721697e6d8bba32b04327559995f2 /src/llvm_backend_proc.cpp | |
| parent | f3aefbc4434b92fc3fda74c942c953b08dd18a62 (diff) | |
Fix lb_build_builtin_simd_proc
Diffstat (limited to 'src/llvm_backend_proc.cpp')
| -rw-r--r-- | src/llvm_backend_proc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp index 296a7fa6b..e3ffcaef2 100644 --- a/src/llvm_backend_proc.cpp +++ b/src/llvm_backend_proc.cpp @@ -1021,8 +1021,8 @@ lbValue lb_build_builtin_simd_proc(lbProcedure *p, Ast *expr, TypeAndValue const res.type = tv.type; lbValue arg0 = {}; if (ce->args.count > 0) arg0 = lb_build_expr(p, ce->args[0]); - lbValue arg1 = {}; if (ce->args.count > 1) arg0 = lb_build_expr(p, ce->args[1]); - lbValue arg2 = {}; if (ce->args.count > 2) arg0 = lb_build_expr(p, ce->args[2]); + lbValue arg1 = {}; if (ce->args.count > 1) arg1 = lb_build_expr(p, ce->args[1]); + lbValue arg2 = {}; if (ce->args.count > 2) arg2 = lb_build_expr(p, ce->args[2]); Type *elem = base_array_type(arg0.type); |