fix test error

This commit is contained in:
JackyWoo 2023-07-14 18:30:37 +08:00
parent cbd4358bac
commit 7ae0c3425f

View File

@ -59,12 +59,6 @@ public:
if (!getSettings().optimize_move_functions_out_of_any)
return;
if (rewritten.contains(node.get()))
{
node = rewritten.at(node.get());
return;
}
auto * function_node = node->as<FunctionNode>();
if (!function_node)
return;
@ -94,6 +88,12 @@ public:
if (inside_arguments.empty())
return;
if (rewritten.contains(node.get()))
{
node = rewritten.at(node.get());
return;
}
/// checking done, rewrite function
bool pushed = false;
for (auto & inside_argument : inside_arguments)