mirror of
https://github.com/verilator/verilator.git
synced 2026-09-01 02:16:47 +02:00
Internals: Make all AstBegin constructor arguments explicit (#6464)
This commit is contained in:
+4
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user