From 7a99349de4d9375845c05e3ac17d1eed366aab2e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 26 Mar 2013 11:13:58 +0100 Subject: Improvements and bugfixes for generate blocks with local signals --- frontends/ast/simplify.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'frontends/ast') diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 981897db..a03cd0be 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -896,10 +896,8 @@ void AstNode::expand_genblock(std::string index_var, std::string prefix, std::ma return; } - if ((type == AST_IDENTIFIER || type == AST_FCALL || type == AST_TCALL) && name_map.count(str) > 0) { + if ((type == AST_IDENTIFIER || type == AST_FCALL || type == AST_TCALL) && name_map.count(str) > 0) str = name_map[str]; - return; - } std::map backup_name_map; -- cgit v1.2.3