Fix duplicate implicit variables under generates, bug201

This commit is contained in:
Wilson Snyder
2010-01-11 12:36:12 -05:00
parent 266b3b8678
commit d1cb3b0d15
3 changed files with 14 additions and 1 deletions
+3
View File
@@ -191,9 +191,12 @@ private:
m_modp->addStmtp(newp);
// Link it to signal list
IdState old_id = m_idState;
V3SymTable* old_varsp = m_curVarsp;
m_idState = ID_FIND;
m_curVarsp = symsFind(m_modp); // Must add the variable under the module; curVarsp might be lower now
newp->accept(*this);
m_idState = old_id;
m_curVarsp = old_varsp;
}
}