Skip to content

Commit

Permalink
this is what breaks it, somehow
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Dec 11, 2024
1 parent 25d4c4a commit 190107c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontends/ast/simplify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2777,13 +2777,13 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin
mux_input = new AstNode(AST_BIT_NOT, mux_input);
}
AstNode *node = new AstNode(AST_TERNARY, children_list.at(2));
// if (str == "bufif0") {
// node->children.push_back(AstNode::mkconst_bits(z_const, false));
// node->children.push_back(mux_input);
// } else {
// node->children.push_back(mux_input);
// node->children.push_back(AstNode::mkconst_bits(z_const, false));
// }
if (str == "bufif0") {
node->children.push_back(AstNode::mkconst_bits(z_const, false));

Check failure on line 2781 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, clang-18)

expected expression

Check failure on line 2781 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, clang-14)

expected expression

Check failure on line 2781 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

expected primary-expression before ‘,’ token

Check failure on line 2781 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-20.04, clang-10)

expected expression

Check failure on line 2781 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (macos-13, clang)

expected expression

Check failure on line 2781 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-13)

expected primary-expression before ‘,’ token
node->children.push_back(mux_input);
} else {
node->children.push_back(mux_input);
node->children.push_back(AstNode::mkconst_bits(z_const, false));

Check failure on line 2785 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, clang-18)

expected expression

Check failure on line 2785 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, clang-14)

expected expression

Check failure on line 2785 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

expected primary-expression before ‘,’ token

Check failure on line 2785 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-20.04, clang-10)

expected expression

Check failure on line 2785 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (macos-13, clang)

expected expression

Check failure on line 2785 in frontends/ast/simplify.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-13)

expected primary-expression before ‘,’ token
}

str.clear();
type = AST_ASSIGN;
Expand Down

0 comments on commit 190107c

Please sign in to comment.