mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Fix false WIDTHCONCAT on casted constant (#2849).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user