mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 10:01:11 +02:00
Support impure expressions in inside (#6562)
This commit is contained in:
+2
-1
@@ -476,7 +476,8 @@ class CaseVisitor final : public VNVisitor {
|
||||
condp = new AstConst{itemp->fileline(), AstConst::BitFalse{}};
|
||||
} else if (AstInsideRange* const irangep = VN_CAST(icondp, InsideRange)) {
|
||||
// Similar logic in V3Width::visit(AstInside)
|
||||
condp = irangep->newAndFromInside(cexprp, irangep->lhsp()->unlinkFrBack(),
|
||||
condp = irangep->newAndFromInside(cexprp->cloneTreePure(true),
|
||||
irangep->lhsp()->unlinkFrBack(),
|
||||
irangep->rhsp()->unlinkFrBack());
|
||||
VL_DO_DANGLING(icondp->deleteTree(), icondp);
|
||||
} else if (iconstp && iconstp->num().isFourState()
|
||||
|
||||
Reference in New Issue
Block a user