projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8200e
)
Fixed multi-level prefix resolving
author
Clifford Wolf
<clifford@clifford.at>
Tue, 22 Sep 2015 18:52:02 +0000
(20:52 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Tue, 22 Sep 2015 18:52:02 +0000
(20:52 +0200)
frontends/ast/simplify.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/simplify.cc
b/frontends/ast/simplify.cc
index 6dc9aed31ebe007bca4e8a091d1938c4cdcdc2fe..77d4447f596e2674c14cbb60db061e905be47be1 100644
(file)
--- a/
frontends/ast/simplify.cc
+++ b/
frontends/ast/simplify.cc
@@
-651,6
+651,8
@@
bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
// dumpAst(NULL, "> ");
log_error("Index in generate block prefix syntax at %s:%d is not constant!\n", filename.c_str(), linenum);
}
+ if (children[1]->type == AST_PREFIX)
+ children[1]->simplify(const_fold, at_zero, in_lvalue, stage, width_hint, sign_hint, in_param);
log_assert(children[1]->type == AST_IDENTIFIER);
newNode = children[1]->clone();
const char *second_part = children[1]->str.c_str();