Concats should be unsigned

This commit is contained in:
Wilson Snyder 2019-08-04 14:48:17 -04:00
parent 1a36e05cc6
commit b7bd5956ea

View File

@ -833,7 +833,7 @@ private:
// use the lhs to replace the parent concat // use the lhs to replace the parent concat
lp->lhsp()->replaceWith(newlp); lp->lhsp()->replaceWith(newlp);
lp->rhsp()->replaceWith(newrp); lp->rhsp()->replaceWith(newrp);
lp->dtypeChgWidthSigned(newlp->width(), newlp->width(), AstNumeric::SIGNED); lp->dtypeChgWidthSigned(newlp->width(), newlp->width(), AstNumeric::UNSIGNED);
UINFO(5, "merged "<< nodep <<endl); UINFO(5, "merged "<< nodep <<endl);
rp->unlinkFrBack()->deleteTree(); VL_DANGLING(rp); rp->unlinkFrBack()->deleteTree(); VL_DANGLING(rp);
nodep->replaceWith(lp->unlinkFrBack()); nodep->deleteTree(); VL_DANGLING(nodep); nodep->replaceWith(lp->unlinkFrBack()); nodep->deleteTree(); VL_DANGLING(nodep);