Skip to content

Commit

Permalink
Fix incorrect std::move in ExprCompiler.cpp (#9237)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #9237

{F1473140094}

Reviewed By: bikramSingh91

Differential Revision: D55319745

fbshipit-source-id: 86a57c5c566553c4ac7299b971f217072abcb8ac
  • Loading branch information
mbasmanova authored and facebook-github-bot committed Mar 25, 2024
1 parent fe49b37 commit e955b4b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions velox/expression/ExprCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,9 @@ ExprPtr compileRewrittenExpression(
trackCpuUsage);
}
} else if (auto call = dynamic_cast<const core::CallTypedExpr*>(expr.get())) {
if (auto specialForm = getSpecialForm(
config,
call->name(),
resultType,
std::move(compiledInputs),
trackCpuUsage)) {
result = specialForm;
if (auto specialForm = specialFormRegistry().getSpecialForm(call->name())) {
result = specialForm->constructSpecialForm(
resultType, std::move(compiledInputs), trackCpuUsage, config);
} else if (
auto func = getVectorFunction(
call->name(),
Expand Down

0 comments on commit e955b4b

Please sign in to comment.