Skip to content

Commit 223a64d

Browse files
Smit-createcertik
authored andcommitted
clear ast_overload before visiting symbol table
1 parent 823cada commit 223a64d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@ class SymbolTableVisitor : public CommonVisitor<SymbolTableVisitor> {
769769
Result<ASR::asr_t*> symbol_table_visitor(Allocator &al, const AST::Module_t &ast,
770770
diag::Diagnostics &diagnostics, bool main_module)
771771
{
772+
ast_overload.clear();
772773
SymbolTableVisitor v(al, nullptr, diagnostics, main_module);
773774
try {
774775
v.visit_Module(ast);

0 commit comments

Comments
 (0)