Internals: Use addNextNull. No functional change intended.

This commit is contained in:
Wilson Snyder
2026-07-14 19:58:25 -04:00
parent 34603ebd60
commit 5ead758f28
4 changed files with 8 additions and 40 deletions
+1 -5
View File
@@ -224,11 +224,7 @@ class UnrollGenVisitor final : public VNVisitor {
const string nname = m_beginName + "__BRA__" + index + "__KET__";
oneloopp = new AstGenBlock{oneloopp->fileline(), nname, oneloopp, false};
VL_DO_DANGLING(pushDeletep(varValuep), varValuep);
if (newbodysp) {
newbodysp->addNext(oneloopp);
} else {
newbodysp = oneloopp;
}
newbodysp = AstNode::addNextNull(newbodysp, oneloopp);
// loopValue += valInc
const AstAssign* const incpass = VN_AS(incp, Assign);