Skip to content

Commit

Permalink
Assign unit location for the "_lpython_main_program" function
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirumalai-Shaktivel committed Nov 2, 2022
1 parent 1248c12 commit a2cf0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libasr/pass/global_stmts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void pass_wrap_global_stmts_into_function(Allocator &al,
SymbolTable *fn_scope = al.make_new<SymbolTable>(unit.m_global_scope);

ASR::ttype_t *type;
Location loc;
Location loc = unit.base.base.loc;
ASR::asr_t *return_var=nullptr;
ASR::expr_t *return_var_ref=nullptr;
char *var_name;
Expand Down

0 comments on commit a2cf0d2

Please sign in to comment.