mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fixes #6293
This commit is contained in:
+4
-4
@@ -190,11 +190,11 @@ class SliceVisitor final : public VNVisitor {
|
||||
}
|
||||
}
|
||||
if (!newp) newp = new AstConst{nodep->fileline(), 0};
|
||||
} else if (AstNodeCond* const snodep = VN_CAST(nodep, NodeCond)) {
|
||||
} else if (AstCond* const snodep = VN_CAST(nodep, Cond)) {
|
||||
UINFO(9, " cloneCond(" << elements << "," << elemIdx << ") " << nodep);
|
||||
return snodep->cloneType(snodep->condp()->cloneTree(false, needPure),
|
||||
cloneAndSel(snodep->thenp(), elements, elemIdx, needPure),
|
||||
cloneAndSel(snodep->elsep(), elements, elemIdx, needPure));
|
||||
return new AstCond{snodep->fileline(), snodep->condp()->cloneTree(false, needPure),
|
||||
cloneAndSel(snodep->thenp(), elements, elemIdx, needPure),
|
||||
cloneAndSel(snodep->elsep(), elements, elemIdx, needPure)};
|
||||
} else if (const AstSliceSel* const snodep = VN_CAST(nodep, SliceSel)) {
|
||||
UINFO(9, " cloneSliceSel(" << elements << "," << elemIdx << ") " << nodep);
|
||||
const int leOffset = (snodep->declRange().lo()
|
||||
|
||||
Reference in New Issue
Block a user