From f62c070d069a1dd3653cfffe89ff5a8b2e204ca2 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 17 Oct 2020 18:56:38 -0400 Subject: [PATCH] Internals: Concat strings only when final; prep for queues. --- src/V3Width.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 1bcfaad59..52b564683 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -513,6 +513,8 @@ private: return; } } + } + if (m_vup->final()) { if (nodep->lhsp()->isString() || nodep->rhsp()->isString()) { AstNode* newp = new AstConcatN(nodep->fileline(), nodep->lhsp()->unlinkFrBack(), nodep->rhsp()->unlinkFrBack()); @@ -520,8 +522,6 @@ private: VL_DO_DANGLING(pushDeletep(nodep), nodep); return; } - } - if (m_vup->final()) { if (!nodep->dtypep()->widthSized()) { // See also error in V3Number nodeForUnsizedWarning(nodep)->v3warn(