mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +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) {
|
bool canSimulate(AstNode *nodep) {
|
||||||
SimulateVisitor simvis;
|
SimulateVisitor simvis;
|
||||||
AstNode* clone = nodep->cloneTree(true);
|
AstNode* clonep = nodep->cloneTree(true);
|
||||||
simvis.mainCheckTree(clone);
|
simvis.mainCheckTree(clonep);
|
||||||
return simvis.optimizable();
|
pushDeletep(clonep); clonep = NULL;
|
||||||
|
return simvis.optimizable();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool simulateTree(AstNode *nodep, const V3Number *loopValue, AstNode *dtypep, V3Number &outNum) {
|
bool simulateTree(AstNode *nodep, const V3Number *loopValue, AstNode *dtypep, V3Number &outNum) {
|
||||||
|
Loading…
Reference in New Issue
Block a user