diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-04-04 18:09:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-04 18:09:12 +0100 |
| commit | fbff2b4fd6a1a4b780b14f4fd9e77e2abfc43962 (patch) | |
| tree | dfb9addcf8f7c5a8f592c9c9063b5a4c6316f5cb /src/llvm_abi.cpp | |
| parent | 7f0ca315b3261bb323260018d08b868a0b313c35 (diff) | |
| parent | a7056f2b4f8ac7c5fe78b00cbae686da4867e206 (diff) | |
Merge pull request #3372 from laytan/fix-lbarg-ignore-logic
fix lbArg_Ignore logic
Diffstat (limited to 'src/llvm_abi.cpp')
| -rw-r--r-- | src/llvm_abi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp index 507881f99..4cee0e443 100644 --- a/src/llvm_abi.cpp +++ b/src/llvm_abi.cpp @@ -192,7 +192,7 @@ gb_internal void lb_add_function_type_attributes(LLVMValueRef fn, lbFunctionType // } LLVMSetFunctionCallConv(fn, cc_kind); if (calling_convention == ProcCC_Odin) { - unsigned context_index = offset+arg_count; + unsigned context_index = arg_index; LLVMAddAttributeAtIndex(fn, context_index, noalias_attr); LLVMAddAttributeAtIndex(fn, context_index, nonnull_attr); LLVMAddAttributeAtIndex(fn, context_index, nocapture_attr); |