diff --git a/src/relay/backend/aot_executor_codegen.cc b/src/relay/backend/aot_executor_codegen.cc index 6ad3b3508337..58bcccf90879 100644 --- a/src/relay/backend/aot_executor_codegen.cc +++ b/src/relay/backend/aot_executor_codegen.cc @@ -403,19 +403,15 @@ class AOTExecutorCodegen : public MixedModeVisitor { CallLoweredProps call_lowered_props; if (const auto* gvn = call_node->op.as()) { // Lowered extern function ICHECK(!(call_node->attrs.defined())) << "Extern functions should have null attributes."; - for (const auto& arg : call_node->args) { VisitExpr(arg); } - call_lowered_props = - CallLoweredProps{std::move(GetRef(gvn)), std::move(call_node->args), {}}; + call_lowered_props = CallLoweredProps{GetRef(gvn), call_node->args, {}}; } else { ICHECK(call_node->op == CallLoweredOp()) << "Operators should be transformed away; Try " "applying the fuse_ops transformation to the " "expression."; - - CallLoweredProps call_lowered_props = GetCallLoweredProps(call_node); - + call_lowered_props = GetCallLoweredProps(call_node); for (const auto& arg : call_lowered_props.arguments) { VisitExpr(arg); }