From 88dd95980aaddb989365c8ec93b42555694a199d Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 4 Jan 2025 12:50:55 -0500 Subject: [PATCH] Internal cleanups, remove extra iterate, but no functional change intended --- src/V3Width.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 652dd01e7..0c9a39299 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -4223,9 +4223,8 @@ class WidthVisitor final : public VNVisitor { UASSERT_OBJ(classp, nodep, "Unlinked classOrPackagep()"); UASSERT_OBJ(nodep->taskp(), nodep, "Unlinked taskp()"); } - userIterate(nodep->taskp(), nullptr); - if (!assign) nodep->dtypeFrom(nodep->taskp()); processFTaskRefArgs(nodep); + if (!assign) nodep->dtypeFrom(nodep->taskp()); } void visit(AstNewCopy* nodep) override { if (nodep->didWidthAndSet()) return; @@ -6086,7 +6085,6 @@ class WidthVisitor final : public VNVisitor { nodep->v3error("Cannot call non-static member function " << nodep->prettyNameQ() << " without object (IEEE 1800-2023 8.10)"); } - userIterate(nodep->taskp(), nullptr); // And do the arguments to the task/function too processFTaskRefArgs(nodep); nodep->addPinsp(withp); @@ -6094,9 +6092,9 @@ class WidthVisitor final : public VNVisitor { } void visit(AstNodeProcedure* nodep) override { assertAtStatement(nodep); + VL_RESTORER(m_procedurep); m_procedurep = nodep; userIterateChildren(nodep, nullptr); - m_procedurep = nullptr; } void visit(AstSenItem* nodep) override { UASSERT_OBJ(nodep->isClocked(), nodep, "Invalid edge");