mirror of
https://github.com/odin-lang/Odin.git
synced 2026-03-09 01:55:36 +00:00
Removes unneeded lookups / Adds sret to call site which fixes the mac bug
This commit is contained in:
@@ -736,6 +736,10 @@ lbValue lb_emit_call_internal(lbProcedure *p, lbValue value, lbValue return_ptr,
|
||||
|
||||
LLVMValueRef ret = LLVMBuildCall2(p->builder, fnp, fn, args, arg_count, "");
|
||||
|
||||
if (return_ptr.value != nullptr) {
|
||||
LLVMAddCallSiteAttribute(ret, 1, lb_create_enum_attribute_with_type(p->module->ctx, "sret", LLVMTypeOf(args[0])));
|
||||
}
|
||||
|
||||
switch (inlining) {
|
||||
case ProcInlining_none:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user