diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-06-06 21:29:23 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-06-06 21:29:23 +0200 |
commit | 5c10d2ee364c8807d10069ba7be3d1da3d252fa1 (patch) | |
tree | b4a1bff317f38edbd58b605ca5ac0f51d8dda65a /frontends | |
parent | c82db39935e969ff95b0728dbb92231f0e9e9891 (diff) | |
download | yosys-5c10d2ee364c8807d10069ba7be3d1da3d252fa1.tar.gz yosys-5c10d2ee364c8807d10069ba7be3d1da3d252fa1.tar.bz2 yosys-5c10d2ee364c8807d10069ba7be3d1da3d252fa1.zip |
fix functions with no block (but single statement, loop, etc.)
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/ast/simplify.cc | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 5f40b60a8..47ea880c6 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1883,17 +1883,10 @@ AstNode *AstNode::eval_const_function(AstNode *fcall) continue; } - if (child->type == AST_ASSIGN_EQ) - { - log_assert(block == NULL); - delete_temp_block = true; - block = new AstNode(AST_BLOCK); - block->children.push_back(child->clone()); - continue; - } - - child->dumpAst(NULL, "unexpected> "); - log_abort(); + log_assert(block == NULL); + delete_temp_block = true; + block = new AstNode(AST_BLOCK); + block->children.push_back(child->clone()); } log_assert(block != NULL); |