Internals: Concat strings only when final; prep for queues.

This commit is contained in:
Wilson Snyder 2020-10-17 18:56:38 -04:00
parent a56e0a6e89
commit f62c070d06

View File

@ -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(