Fix timed nested fork block with disable (#6720) (#7743)

Fixes #6720.
This commit is contained in:
Marco Bartoli
2026-06-12 10:42:32 -04:00
committed by GitHub
parent 748e48f881
commit 5831cc8d46
4 changed files with 110 additions and 0 deletions
+3
View File
@@ -262,6 +262,9 @@ class LinkJumpVisitor final : public VNVisitor {
if (it != m_beginDisableBegins.end()) return it->second;
AstBegin* const beginBodyp = new AstBegin{fl, "", nullptr, false};
// Disable-by-name rewrites kill this detached block-body process, so mark it as process
// backed to ensure fork/join kill-accounting hooks are always emitted.
beginBodyp->setNeedProcess();
if (beginp->stmtsp()) beginBodyp->addStmtsp(beginp->stmtsp()->unlinkFrBackWithNext());
AstFork* const forkp = new AstFork{fl, VJoinType::JOIN};