diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-08-05 08:35:51 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-08-05 08:35:51 +0200 |
commit | 0129d41efad623ee95878a673c1c1190261ba3ef (patch) | |
tree | 42037ffccc4158a8753db177ee3041c51c136601 /frontends/ast | |
parent | 0bb694221832f250977437f29365bc5e17c4cd09 (diff) | |
download | yosys-0129d41efad623ee95878a673c1c1190261ba3ef.tar.gz yosys-0129d41efad623ee95878a673c1c1190261ba3ef.tar.bz2 yosys-0129d41efad623ee95878a673c1c1190261ba3ef.zip |
Fixed AST handling of variables declared inside a functions main block
Diffstat (limited to 'frontends/ast')
-rw-r--r-- | frontends/ast/simplify.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 694f1d4d8..20edc1739 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1460,7 +1460,6 @@ skip_dynamic_range_lvalue_expansion:; } for (auto child : decl->children) - { if (child->type == AST_WIRE) { AstNode *wire = child->clone(); @@ -1488,7 +1487,9 @@ skip_dynamic_range_lvalue_expansion:; } } } - else + + for (auto child : decl->children) + if (child->type != AST_WIRE) { AstNode *stmt = child->clone(); stmt->replace_ids(replace_rules); @@ -1500,7 +1501,6 @@ skip_dynamic_range_lvalue_expansion:; break; } } - } replace_fcall_with_id: if (type == AST_FCALL) { |