Revert "Change var lifetime in v3fork"

This reverts commit 77597cda8c0c22491ca2fbbe135ccdd7ff538132.
This commit is contained in:
Kamil Danecki 2026-03-20 14:00:09 +01:00
parent 1e6fb7ae23
commit d2f34b9974
1 changed files with 1 additions and 5 deletions

View File

@ -449,17 +449,13 @@ class DynScopeVisitor final : public VNVisitor {
<< nodep->varp()->verilogKwd()
<< " variable of a function after a timing control is not allowed");
} else {
if (nodep->varp()->lifetime() == VLifetime::AUTOMATIC_IMPLICIT) {
nodep->varp()->lifetime(VLifetime::STATIC_IMPLICIT);
} else {
nodep->v3warn(E_UNSUPPORTED, "Unsupported: Writing to a captured "
nodep->v3warn(E_UNSUPPORTED, "Unsupported: Writing to a captured "
<< nodep->varp()->verilogKwd()
<< " variable in a "
<< (VN_IS(nodep->backp(), AssignDly)
? "non-blocking assignment"
: "fork")
<< " after a timing control");
}
}
}
if (!framep->instance().initialized()) framep->createInstancePrototype();