Add internal assertion that VarScopes properly formed.

This commit is contained in:
Wilson Snyder
2020-11-14 16:13:06 -05:00
parent c64cc989f0
commit e74cc32f2d
4 changed files with 23 additions and 0 deletions
+1
View File
@@ -304,6 +304,7 @@ public:
void V3Descope::descopeAll(AstNetlist* nodep) {
UINFO(2, __FUNCTION__ << ": " << endl);
v3Global.assertScoped(false);
{ DescopeVisitor visitor(nodep); } // Destruct before checking
V3Global::dumpCheckGlobalTree("descope", 0, v3Global.opt.dumpTreeLevel(__FILE__) >= 3);
}