Internals: Make all AstBegin constructor arguments explicit (#6464)

This commit is contained in:
Geza Lore
2025-09-20 13:16:03 -04:00
committed by GitHub
parent 19ca140165
commit e0e8503151
16 changed files with 37 additions and 37 deletions
+4 -5
View File
@@ -1078,11 +1078,10 @@ AstNode* AstNode::iterateSubtreeReturnEdits(VNVisitor& v) {
} else if (!nodep->backp()) {
// Calling on standalone tree; insert a shim node so we can keep
// track, then delete it on completion
AstBegin* const tempp = new AstBegin{nodep->fileline(), "[EditWrapper]", nodep};
{
VL_DO_DANGLING(tempp->stmtsp()->accept(v),
nodep); // nodep to null as may be replaced
}
AstBegin* const tempp
= new AstBegin{nodep->fileline(), "[EditWrapper]", nodep, false, false};
// nodep to null as may be replaced
VL_DO_DANGLING(tempp->stmtsp()->accept(v), nodep);
nodep = tempp->stmtsp()->unlinkFrBackWithNext();
VL_DO_DANGLING(tempp->deleteTree(), tempp);
} else {