Internals: Add missing VL_DO_DANGLING. No functional change intended.

This commit is contained in:
Wilson Snyder
2024-05-08 08:36:24 -04:00
parent 2a9f29912c
commit 1cc37ad6ce
16 changed files with 23 additions and 31 deletions
+1 -2
View File
@@ -223,8 +223,7 @@ class DescopeVisitor final : public VNVisitor {
}
void visit(AstVarScope* nodep) override {
// Delete the varscope when we're finished
nodep->unlinkFrBack();
pushDeletep(nodep);
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
}
void visit(AstNodeVarRef* nodep) override {
iterateChildren(nodep);