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
@@ -134,6 +134,8 @@ public:
void V3CoverageJoin::coverageJoin(AstNetlist* rootp) {
UINFO(2,__FUNCTION__<<": "<<endl);
CoverageJoinVisitor visitor (rootp);
{
CoverageJoinVisitor visitor (rootp);
} // Destruct before checking
V3Global::dumpCheckGlobalTree("coveragejoin", 0, v3Global.opt.dumpTreeLevel(__FILE__) >= 3);
}