Skip to content

Commit

Permalink
Fixed C-style variadic arguments for LLVM 19
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacShelton authored Jan 6, 2025
1 parent 66ac27a commit 50e7ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BKEND/ir_to_llvm_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ errorcode_t ir_to_llvm_instructions(llvm_context_t *llvm, ir_instrs_t instructio
LLVMTypeRef signature = LLVMFunctionType(LLVMVoidType(), arg_types, 1, false);

if(*va_intrinsic == NULL){
*va_intrinsic = LLVMAddFunction(llvm->module, is_start ? "llvm.va_start" : "llvm.va_end", signature);
*va_intrinsic = LLVMAddFunction(llvm->module, is_start ? "llvm.va_start.p0" : "llvm.va_end.p0", signature);
}

LLVMValueRef args[] = {
Expand Down

0 comments on commit 50e7ca8

Please sign in to comment.