projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c82db39
)
fix functions with no block (but single statement, loop, etc.)
author
Clifford Wolf
<clifford@clifford.at>
Fri, 6 Jun 2014 19:29:23 +0000
(21:29 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Fri, 6 Jun 2014 19:29:23 +0000
(21:29 +0200)
frontends/ast/simplify.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/simplify.cc
b/frontends/ast/simplify.cc
index 5f40b60a88d93c8d14ccd1992dbfd67800d05e34..47ea880c600576ddaa7613f8cde9e09a8a8379e7 100644
(file)
--- 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);