From 4bb3c55f0657ff7737045cd993ac03b41f3a7a8d Mon Sep 17 00:00:00 2001 From: Kamil Danecki Date: Thu, 19 Mar 2026 17:43:38 +0100 Subject: [PATCH] Only apply to IO nodes Signed-off-by: Kamil Danecki --- src/V3Begin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Begin.cpp b/src/V3Begin.cpp index c8052c5e4..06fa88fbe 100644 --- a/src/V3Begin.cpp +++ b/src/V3Begin.cpp @@ -307,7 +307,7 @@ class BeginVisitor final : public VNVisitor { // UINFO(0, "TASK IS STATIC " << m_ftaskp->lifetime().isStatic()); const std::string newName = m_ftaskp->name() + "__Vstatic__" + dot(m_unnamedScope, nodep->name()); - if (m_ftaskp->lifetime().isStatic()) { + if (m_ftaskp->lifetime().isStatic() && nodep->isIO()) { AstVar* keepAsPort = nodep->cloneTreePure(false); nodep->replaceWith(keepAsPort); m_statep->userMarkChanged(keepAsPort);