From 5d8019f941dcc1f2e7620568dc6a90e369da40b5 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 15 Oct 2020 21:02:24 -0400 Subject: [PATCH] Internals: Only need to applyFTask once. No functional change intended. --- src/V3LinkParse.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/V3LinkParse.cpp b/src/V3LinkParse.cpp index 09ebb7fb3..3a25a1a68 100644 --- a/src/V3LinkParse.cpp +++ b/src/V3LinkParse.cpp @@ -104,12 +104,13 @@ private: // VISITs virtual void visit(AstNodeFTask* nodep) override { - V3Config::applyFTask(m_modp, nodep); - if (!nodep->user1SetOnce()) { // Process only once. + V3Config::applyFTask(m_modp, nodep); cleanFileline(nodep); - m_ftaskp = nodep; - iterateChildren(nodep); + { + m_ftaskp = nodep; + iterateChildren(nodep); + } m_ftaskp = nullptr; } }