mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: enum constructor cleanups. No functional change intended.
This commit is contained in:
+2
-2
@@ -524,8 +524,8 @@ private:
|
||||
// up array: lsb/hi -: width
|
||||
const int32_t msb = VN_IS(nodep, SelPlus) ? rhs + width - 1 : rhs;
|
||||
const int32_t lsb = VN_IS(nodep, SelPlus) ? rhs : rhs - width + 1;
|
||||
AstSliceSel* const newp = new AstSliceSel(
|
||||
nodep->fileline(), fromp, VNumRange(msb, lsb, fromRange.littleEndian()));
|
||||
AstSliceSel* const newp = new AstSliceSel{
|
||||
nodep->fileline(), fromp, VNumRange{msb, lsb, fromRange.littleEndian()}};
|
||||
nodep->replaceWith(newp);
|
||||
VL_DO_DANGLING(pushDeletep(nodep), nodep);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user