diff --git a/src/V3Class.cpp b/src/V3Class.cpp index 3db441aed..c7bbc91c3 100644 --- a/src/V3Class.cpp +++ b/src/V3Class.cpp @@ -151,9 +151,7 @@ private: virtual void visit(AstInitial* nodep) override { // But not AstInitialAutomatic, which remains under the class iterateChildren(nodep); - if (m_packageScopep) { - m_toScopeMoves.push_back(std::make_pair(nodep, m_packageScopep)); - } + if (m_packageScopep) { m_toScopeMoves.push_back(std::make_pair(nodep, m_packageScopep)); } } virtual void visit(AstNodeMath* nodep) override {} // Short circuit