Skip to content

Commit

Permalink
Removed unnecessary new FunctionDef
Browse files Browse the repository at this point in the history
  • Loading branch information
tanay-man committed Jul 7, 2024
1 parent 1f66f14 commit 92e75ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lpython/semantics/python_ast_to_asr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4280,9 +4280,7 @@ class SymbolTableVisitor : public CommonVisitor<SymbolTableVisitor> {
args_vec.push_back(al,*arg);
}
new_args->m_args = args_vec.p;
x = *AST::down_cast<AST::FunctionDef_t>(AST::make_FunctionDef_t(al,x.base.base.loc,
x.m_name,*new_args,x.m_body,x.n_body,x.m_decorator_list,x.n_decorator_list,
x.m_returns,x.m_type_comment));
x.m_args = *new_args;
visit_FunctionDef(x);
}

Expand Down

0 comments on commit 92e75ab

Please sign in to comment.