From fddc2319479e369fd1ce18149f5ffba84758e27e Mon Sep 17 00:00:00 2001 From: Lily Orth-Smith Date: Tue, 9 Nov 2021 15:50:12 -0800 Subject: [PATCH] Fix aot crt test --- src/relay/backend/aot_executor_codegen.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); }