Skip to content

Commit

Permalink
Fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jan 12, 2022
1 parent 747e2f3 commit 1528cd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lfortran/semantics/python_ast_to_asr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
}

void visit_BoolOp(const AST::BoolOp_t &x) {
throw SemanticError("Boolean binary operator is not implemented yet",
x.base.base.loc);
/*
this->visit_expr(*x.m_left);
ASR::expr_t *left = LFortran::ASRUtils::EXPR(tmp);
this->visit_expr(*x.m_right);
Expand All @@ -589,6 +592,7 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
ASR::expr_t *value = nullptr;
tmp = ASR::make_BoolOp_t(al, x.base.base.loc, left, op, right, dest_type,
value);
*/
}

void visit_BinOp(const AST::BinOp_t &x) {
Expand Down Expand Up @@ -1024,7 +1028,7 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
type, value, overloaded);
}

void visit_Pass(const AST::Pass_t &x) {
void visit_Pass(const AST::Pass_t &/*x*/) {
tmp = nullptr;
}

Expand Down

0 comments on commit 1528cd3

Please sign in to comment.