Fix unlinked VlProcess error

This commit is contained in:
Wilson Snyder
2026-09-12 11:00:29 -04:00
parent 73957647cc
commit c7b1151f13
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -251,6 +251,7 @@ class LinkJumpVisitor final : public VNVisitor {
// Disable-by-name rewrites kill this detached task-body process, so mark it as process
// backed to ensure fork/join kill-accounting hooks are always emitted.
taskBodyp->setNeedProcess();
v3Global.setUsesTiming();
if (taskp->stmtsp()) taskBodyp->addStmtsp(taskp->stmtsp()->unlinkFrBackWithNext());
AstFork* const forkp = new AstFork{fl, VJoinType::JOIN};
@@ -306,6 +307,7 @@ class LinkJumpVisitor final : public VNVisitor {
// 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();
v3Global.setUsesTiming();
if (beginp->stmtsp()) beginBodyp->addStmtsp(beginp->stmtsp()->unlinkFrBackWithNext());
AstFork* const forkp = new AstFork{fl, VJoinType::JOIN};