mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Do not use a stack variable
This commit is contained in:
parent
428f69c57d
commit
9cffb9bfeb
@ -422,9 +422,8 @@ void SingleValueDataFixed<T>::compileCreate(llvm::IRBuilderBase & builder, llvm:
|
||||
auto * function_pointer = b.CreateIntToPtr(
|
||||
llvm::ConstantInt::get(b.getInt64Ty(), uintptr_t(::DB::build_SingleValueDataFixed<T>)),
|
||||
llvm::PointerType::getUnqual(function_type));
|
||||
llvm::FunctionCallee function_callee(function_type, function_pointer);
|
||||
llvm::ArrayRef<llvm::Value *> args{aggregate_data_ptr};
|
||||
b.CreateCall(function_callee, args);
|
||||
llvm::ArrayRef<llvm::Value *> args{&aggregate_data_ptr, 1};
|
||||
b.CreateCall(function_type, function_pointer, args);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
Loading…
Reference in New Issue
Block a user