diff options
| -rw-r--r-- | sparse-llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sparse-llvm.c b/sparse-llvm.c index 273e22d6..344934b0 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -1079,7 +1079,7 @@ static void output_fn(LLVMModuleRef module, struct entrypoint *ep) name = show_ident(sym->ident); - fun_type = LLVMFunctionType(ret_type, arg_types, nr_args, 0); + fun_type = LLVMFunctionType(ret_type, arg_types, nr_args, base_type->variadic); function.fn = LLVMAddFunction(module, name, fun_type); LLVMSetFunctionCallConv(function.fn, LLVMCCallConv); |
