mirror of
https://github.com/verilator/verilator.git
synced 2025-01-04 05:37:48 +00:00
Fix various small node leaks.
This commit is contained in:
parent
54a101acbe
commit
0a1b775ed6
@ -185,10 +185,11 @@ private:
|
||||
}
|
||||
|
||||
bool canSimulate(AstNode *nodep) {
|
||||
SimulateVisitor simvis;
|
||||
AstNode* clone = nodep->cloneTree(true);
|
||||
simvis.mainCheckTree(clone);
|
||||
return simvis.optimizable();
|
||||
SimulateVisitor simvis;
|
||||
AstNode* clonep = nodep->cloneTree(true);
|
||||
simvis.mainCheckTree(clonep);
|
||||
pushDeletep(clonep); clonep = NULL;
|
||||
return simvis.optimizable();
|
||||
}
|
||||
|
||||
bool simulateTree(AstNode *nodep, const V3Number *loopValue, AstNode *dtypep, V3Number &outNum) {
|
||||
|
Loading…
Reference in New Issue
Block a user