diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-14 17:16:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-14 17:16:10 +0100 |
| commit | 3a4373641b68019149007f04a201965ee961f74e (patch) | |
| tree | 6d4b7531b20abe4f5b089b349f62b1987da0d1ce /src/llvm_backend.cpp | |
| parent | 9adec628c1c6b3d24f7a8642bbf5c0c84586d161 (diff) | |
Correct call site attributes
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 16c2e35e5..14a1a8007 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -8098,10 +8098,10 @@ lbValue lb_emit_call_internal(lbProcedure *p, lbValue value, lbValue return_ptr, case ProcInlining_none: break; case ProcInlining_inline: - // LLVMAddAttributeAtIndex(ret, LLVMAttributeIndex_FunctionIndex, lb_create_enum_attribute(p->module->ctx, "alwaysinline")); + LLVMAddCallSiteAttribute(ret, LLVMAttributeIndex_FunctionIndex, lb_create_enum_attribute(p->module->ctx, "alwaysinline")); break; case ProcInlining_no_inline: - // LLVMAddAttributeAtIndex(ret, LLVMAttributeIndex_FunctionIndex, lb_create_enum_attribute(p->module->ctx, "noinline")); + LLVMAddCallSiteAttribute(ret, LLVMAttributeIndex_FunctionIndex, lb_create_enum_attribute(p->module->ctx, "noinline")); break; } |