Skip to content

Commit fb79dba

Browse files
committed
Fix the code to compile
1 parent 51f5689 commit fb79dba

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ class CommonVisitor : public AST::BaseVisitor<Derived> {
15201520
LFORTRAN_ASSERT(ASRUtils::check_equal_type(ASRUtils::expr_type(body),
15211521
ASRUtils::expr_type(orelse)));
15221522
tmp = ASR::make_IfExp_t(al, x.base.base.loc, test, body, orelse,
1523-
ASRUtils::expr_type(body));
1523+
ASRUtils::expr_type(body), nullptr);
15241524
}
15251525

15261526
void visit_Subscript(const AST::Subscript_t &x) {
@@ -1604,7 +1604,7 @@ class CommonVisitor : public AST::BaseVisitor<Derived> {
16041604
index->base.loc);
16051605
}
16061606
tmp = make_DictItem_t(al, x.base.base.loc, s, index, nullptr,
1607-
ASR::down_cast<ASR::Dict_t>(type)->m_value_type);
1607+
ASR::down_cast<ASR::Dict_t>(type)->m_value_type, nullptr);
16081608
return;
16091609

16101610
} else if (ASR::is_a<ASR::List_t>(*type)) {

src/lpython/semantics/python_attribute_eval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ struct AttributeHandler {
282282
);
283283
throw SemanticAbort();
284284
}
285-
return make_DictItem_t(al, loc, s, args[0], def, value_type);
285+
return make_DictItem_t(al, loc, s, args[0], def, value_type, nullptr);
286286
}
287287

288288
static ASR::asr_t* eval_dict_pop(ASR::symbol_t *s, Allocator &al, const Location &loc,

0 commit comments

Comments
 (0)