We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1248c12 commit a2cf0d2Copy full SHA for a2cf0d2
src/libasr/pass/global_stmts.cpp
@@ -29,7 +29,7 @@ void pass_wrap_global_stmts_into_function(Allocator &al,
29
SymbolTable *fn_scope = al.make_new<SymbolTable>(unit.m_global_scope);
30
31
ASR::ttype_t *type;
32
- Location loc;
+ Location loc = unit.base.base.loc;
33
ASR::asr_t *return_var=nullptr;
34
ASR::expr_t *return_var_ref=nullptr;
35
char *var_name;
0 commit comments