Incorrect index on sret. Explicit fallthrough annotation on type_is_homogenous_base_type.

This commit is contained in:
Christoffer Lerno
2020-11-24 11:46:39 +01:00
parent 162bb9dac8
commit 669fd8c9a9
2 changed files with 2 additions and 1 deletions

View File

@@ -435,7 +435,7 @@ static void llvm_emit_param_attributes(GenContext *context, LLVMValueRef functio
}
if (is_return)
{
llvm_attribute_add(context, function, attribute_sret, index);
llvm_attribute_add(context, function, attribute_sret, 1);
}
else
{