From d2f34b997428d08d4284079954e0ed0fc79d38e5 Mon Sep 17 00:00:00 2001 From: Kamil Danecki Date: Fri, 20 Mar 2026 14:00:09 +0100 Subject: [PATCH] Revert "Change var lifetime in v3fork" This reverts commit 77597cda8c0c22491ca2fbbe135ccdd7ff538132. --- src/V3Fork.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/V3Fork.cpp b/src/V3Fork.cpp index e657a0671..2e40faa24 100644 --- a/src/V3Fork.cpp +++ b/src/V3Fork.cpp @@ -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();