mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix unlinked VlProcess error
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user