Cast as scope always under topscopes - no func change

git-svn-id: file://localhost/svn/verilator/trunk/verilator@765 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
Wilson Snyder
2006-08-29 19:10:55 +00:00
parent 81d2329e88
commit 268f0544be
9 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ private:
virtual void visit(AstTopScope* nodep, AstNUser*) {
AstNode::user2ClearTree(); // userp() used on entire tree
AstScope* scopep = nodep->scopep()->castScope();
AstScope* scopep = nodep->scopep();
if (!scopep) nodep->v3fatalSrc("No scope found on top level");
m_scopetopp = scopep;