mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Signed-off-by: Krzysztof Bieganski <[email protected]>
This commit is contained in:
+3
-2
@@ -459,10 +459,11 @@ class DynScopeVisitor final : public VNVisitor {
|
||||
})) {
|
||||
nodep->user2(true);
|
||||
// Put it in a fork to prevent lifetime issues with the local
|
||||
AstFork* const forkp = new AstFork{nodep->fileline(), "", nullptr};
|
||||
AstBegin* const beginp = new AstBegin{nodep->fileline(), "", nullptr};
|
||||
AstFork* const forkp = new AstFork{nodep->fileline(), "", beginp};
|
||||
forkp->joinType(VJoinType::JOIN_NONE);
|
||||
nodep->replaceWith(forkp);
|
||||
forkp->addStmtsp(nodep);
|
||||
beginp->addStmtsp(nodep);
|
||||
UINFO(9, "assign new fork " << forkp);
|
||||
} else {
|
||||
visit(static_cast<AstNodeStmt*>(nodep));
|
||||
|
||||
Reference in New Issue
Block a user