From: David Shah Date: Thu, 3 Oct 2019 08:55:43 +0000 (+0100) Subject: frontends/ast: code style X-Git-Tag: working-ls180~995^2^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e46e8753c84ee83f871d5ce116ce4c08dd49a031;p=yosys.git frontends/ast: code style Signed-off-by: David Shah --- diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 0ebc183b2..44fd32cdc 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -786,9 +786,8 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, if (type == AST_TYPEDEF) { log_assert(children.size() == 1); log_assert(children[0]->type == AST_WIRE || children[0]->type == AST_MEMORY); - while(children[0]->simplify(const_fold, at_zero, in_lvalue, stage, width_hint, sign_hint, in_param)) { + while(children[0]->simplify(const_fold, at_zero, in_lvalue, stage, width_hint, sign_hint, in_param)) did_something = true; - }; log_assert(!children[0]->is_custom_type); }