Update complie expressions.

This commit is contained in:
Nikolai Kochetov 2020-11-05 19:34:17 +03:00
parent f07c5ffefd
commit 8eab6b7694
2 changed files with 6 additions and 3 deletions

View File

@ -635,8 +635,12 @@ static LLVMFunction::CompileDAG getCompilableDAG(ActionsDAG::Node * root, std::v
: (is_compilable_function ? LLVMFunction::CompileNode::NodeType::FUNCTION
: LLVMFunction::CompileNode::NodeType::INPUT);
for (const auto * child : frame.node->children)
node.arguments.push_back(positions[child]);
if (node.type == LLVMFunction::CompileNode::NodeType::FUNCTION)
for (const auto * child : frame.node->children)
node.arguments.push_back(positions[child]);
if (node.type == LLVMFunction::CompileNode::NodeType::CONSTANT)
node.column = frame.node->column;
if (node.type == LLVMFunction::CompileNode::NodeType::INPUT)
children.emplace_back(frame.node);

View File

@ -45,7 +45,6 @@ public:
/// For CONSTANT
ColumnPtr column;
llvm::Value * value = nullptr;
/// For FUNCTION
FunctionBasePtr function;