diff --git a/src/AggregateFunctions/SingleValueData.cpp b/src/AggregateFunctions/SingleValueData.cpp index 184c485368c..638f4b461e5 100644 --- a/src/AggregateFunctions/SingleValueData.cpp +++ b/src/AggregateFunctions/SingleValueData.cpp @@ -422,9 +422,8 @@ void SingleValueDataFixed::compileCreate(llvm::IRBuilderBase & builder, llvm: auto * function_pointer = b.CreateIntToPtr( llvm::ConstantInt::get(b.getInt64Ty(), uintptr_t(::DB::build_SingleValueDataFixed)), llvm::PointerType::getUnqual(function_type)); - llvm::FunctionCallee function_callee(function_type, function_pointer); - llvm::ArrayRef args{aggregate_data_ptr}; - b.CreateCall(function_callee, args); + llvm::ArrayRef args{&aggregate_data_ptr, 1}; + b.CreateCall(function_type, function_pointer, args); } template