Skip to content

Commit c9afec7

Browse files
committed
FIX: alloc_arg_t m_sym_subclass
1 parent 119f5bb commit c9afec7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4686,6 +4686,7 @@ class SymbolTableVisitor : public CommonVisitor<SymbolTableVisitor> {
46864686
alloc_arg.n_dims = 0;
46874687
alloc_arg.m_type = nullptr;
46884688
alloc_arg.m_len_expr = nullptr;
4689+
alloc_arg.m_sym_subclass = nullptr;
46894690
alloc_args.push_back(al, alloc_arg);
46904691
init_expr = ASRUtils::EXPR(ASR::make_Allocate_t(al, loc, alloc_args.p, 1, nullptr, nullptr, nullptr));
46914692

@@ -8793,6 +8794,7 @@ we will have to use something else.
87938794
new_arg.m_dims = dims.p;
87948795
new_arg.n_dims = dims.size();
87958796
new_arg.m_a = assign_asr_target;
8797+
new_arg.m_sym_subclass = nullptr;
87968798
alloc_args_vec.push_back(al, new_arg);
87978799
tmp = ASR::make_Allocate_t(al, loc,
87988800
alloc_args_vec.p, alloc_args_vec.size(),

0 commit comments

Comments
 (0)