mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Check nativity of all types *before* calling isCompilable
This commit is contained in:
parent
979c4d959f
commit
5c75342d54
@ -81,12 +81,12 @@ void LLVMContext::finalize()
|
||||
|
||||
bool LLVMContext::isCompilable(const IFunctionBase& function) const
|
||||
{
|
||||
if (!function.isCompilable() || !toNativeType(shared->builder, function.getReturnType()))
|
||||
if (!toNativeType(shared->builder, function.getReturnType()))
|
||||
return false;
|
||||
for (const auto & type : function.getArgumentTypes())
|
||||
if (!toNativeType(shared->builder, type))
|
||||
return false;
|
||||
return true;
|
||||
return function.isCompilable();
|
||||
}
|
||||
|
||||
LLVMPreparedFunction::LLVMPreparedFunction(LLVMContext context, std::shared_ptr<const IFunctionBase> parent)
|
||||
|
Loading…
Reference in New Issue
Block a user