Internals: Fix -DLEAK_CHECKS failing due to visitor destructor being too late.

This commit is contained in:
Wilson Snyder
2018-03-10 12:57:50 -05:00
parent db1af07d72
commit 54a101acbe
49 changed files with 206 additions and 86 deletions
+3 -1
View File
@@ -136,6 +136,8 @@ public:
void V3AssertPre::assertPreAll(AstNetlist* nodep) {
UINFO(2,__FUNCTION__<<": "<<endl);
AssertPreVisitor visitor (nodep);
{
AssertPreVisitor visitor (nodep);
} // Destruct before checking
V3Global::dumpCheckGlobalTree("assertpre", 0, v3Global.opt.dumpTreeLevel(__FILE__) >= 3);
}