Fix false WIDTHCONCAT on casted constant (#2849).

This commit is contained in:
Wilson Snyder
2021-03-23 19:49:57 -04:00
parent 2e158d88c1
commit 7ea014dab5
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -1821,6 +1821,7 @@ private:
if (m_vup->final()) {
// CastSize not needed once sizes determined
AstNode* underp = nodep->lhsp()->unlinkFrBack();
underp->dtypeFrom(nodep);
nodep->replaceWith(underp);
VL_DO_DANGLING(pushDeletep(nodep), nodep);
}