Internals: Remove AstCondBound and AstNodeCond (#6293) (#6294)

Fixes #6293
This commit is contained in:
Geza Lore
2025-08-15 15:49:06 -07:00
committed by GitHub
parent d273e2cbd0
commit 6f69c990fd
18 changed files with 70 additions and 114 deletions
+4 -4
View File
@@ -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()