mirror of
https://github.com/verilator/verilator.git
synced 2026-09-04 16:40:12 +02:00
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:
+1
-1
@@ -180,7 +180,7 @@ private:
|
||||
virtual void visit(AstTopScope* nodep, AstNUser*) {
|
||||
UINFO(4," TOPSCOPE "<<nodep<<endl);
|
||||
m_topScopep=nodep;
|
||||
m_scopep = nodep->scopep()->castScope();
|
||||
m_scopep = nodep->scopep();
|
||||
if (!m_scopep) nodep->v3fatalSrc("No scope found on top level, perhaps you have no statements?\n");
|
||||
//VV***** We reset all userp()
|
||||
AstNode::userClearTree();
|
||||
|
||||
Reference in New Issue
Block a user