Skip to content

Commit

Permalink
HACK: change index of Sret attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenzek committed Mar 28, 2022
1 parent 8235df2 commit 4204655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zig_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ void ZigLLVMSetTailCall(LLVMValueRef Call) {
void ZigLLVMSetCallSret(LLVMValueRef Call, LLVMTypeRef return_type) {
CallInst *call_inst = unwrap<CallInst>(Call);
Type *llvm_type = unwrap<Type>(return_type);
call_inst->addParamAttr(1, Attribute::getWithStructRetType(call_inst->getContext(), llvm_type));
call_inst->addParamAttr(0, Attribute::getWithStructRetType(call_inst->getContext(), llvm_type));
}

void ZigLLVMFunctionSetPrefixData(LLVMValueRef function, LLVMValueRef data) {
Expand Down

0 comments on commit 4204655

Please sign in to comment.