Fix use-after-free of captured interface typedef in deleted generate branch (#8287)

This commit is contained in:
Nick Brereton
2026-09-04 14:27:11 -04:00
committed by GitHub
parent 18095ac924
commit b1c06fdb09
2 changed files with 26 additions and 0 deletions
+1
View File
@@ -3269,6 +3269,7 @@ class ParamVisitor final : public VNVisitor {
} else {
nodep->unlinkFrBack();
}
V3LinkDotIfaceCapture::purgeDeletedSubtree(nodep);
VL_DO_DANGLING(nodep->deleteTree(), nodep);
// Normal edit rules will now recurse the replacement
} else {