mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Add VL_DO_DANGLING in some missing places. No functional change intended.
This commit is contained in:
+2
-3
@@ -355,7 +355,7 @@ class TraceVisitor final : public VNVisitor {
|
||||
} while (emptyScope);
|
||||
}
|
||||
// Can't purge until we finish this pass
|
||||
pushDeletep(declp->unlinkFrBack());
|
||||
pushDeletep(declp->unlinkFrBack()); // declp used below
|
||||
vvertexp->rerouteEdges(&m_graph);
|
||||
vvertexp->unlinkDelete(&m_graph);
|
||||
}
|
||||
@@ -1137,8 +1137,7 @@ class TraceVisitor final : public VNVisitor {
|
||||
// TraceInc
|
||||
for (const auto& i : traces) {
|
||||
AstNode* const valuep = i.second->nodep()->valuep();
|
||||
valuep->unlinkFrBack();
|
||||
valuep->deleteTree();
|
||||
VL_DO_DANGLING(valuep->unlinkFrBack()->deleteTree(), valuep);
|
||||
}
|
||||
|
||||
// Create the trace cleanup function clearing the activity flags
|
||||
|
||||
Reference in New Issue
Block a user