Fix dpiGetContext in dotted scopes, bug740.

This commit is contained in:
Wilson Snyder
2014-07-21 20:55:52 -04:00
parent 5559ec903b
commit fe5bf01b25
8 changed files with 55 additions and 1 deletions
+4
View File
@@ -387,6 +387,10 @@ private:
if (afterp) afterp->unlinkFrBackWithNext();
nodep->scopeAttrp(new AstText(nodep->fileline(), (string)"__DOT__"+m_cellp->name()));
if (afterp) nodep->scopeAttrp(afterp);
afterp = nodep->scopeEntrp();
if (afterp) afterp->unlinkFrBackWithNext();
nodep->scopeEntrp(new AstText(nodep->fileline(), (string)"__DOT__"+m_cellp->name()));
if (afterp) nodep->scopeEntrp(afterp);
nodep->iterateChildren(*this);
}
virtual void visit(AstCoverDecl* nodep, AstNUser*) {