aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast
diff options
context:
space:
mode:
authorclairexen <claire@symbioticeda.com>2020-06-25 18:21:51 +0200
committerGitHub <noreply@github.com>2020-06-25 18:21:51 +0200
commitc7d71f436d822bbbe3cda118591ed2b33eae3a7f (patch)
tree48833b0478eb97cdc287545c4571249e88800ce5 /frontends/ast
parent21209d632e62983d008e121c6ffcf2815d2ae4d8 (diff)
parentc8c3c7af87804a175b3dfc60dce191b03c9741fe (diff)
downloadyosys-c7d71f436d822bbbe3cda118591ed2b33eae3a7f.tar.gz
yosys-c7d71f436d822bbbe3cda118591ed2b33eae3a7f.tar.bz2
yosys-c7d71f436d822bbbe3cda118591ed2b33eae3a7f.zip
Merge pull request #2168 from whitequark/assert-unused-exprs
Use (and ignore) the expression provided to log_assert in NDEBUG builds
Diffstat (limited to 'frontends/ast')
-rw-r--r--frontends/ast/simplify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 5f026dfed..55e7da0aa 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -778,7 +778,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
while (node->simplify(true, false, false, 1, -1, false, node->type == AST_PARAMETER || node->type == AST_LOCALPARAM))
did_something = true;
if (node->type == AST_ENUM) {
- for (auto enode YS_ATTRIBUTE(unused) : node->children){
+ for (auto enode : node->children){
log_assert(enode->type==AST_ENUM_ITEM);
while (node->simplify(true, false, false, 1, -1, false, in_param))
did_something = true;