Internals: Add VL_DO_DANGLING in some missing places. No functional change intended.

This commit is contained in:
Wilson Snyder
2026-09-23 18:27:40 -04:00
parent 7fd68b58ca
commit 3d386f8fa5
24 changed files with 58 additions and 57 deletions
+2 -3
View File
@@ -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