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
+2 -2
View File
@@ -194,7 +194,7 @@ struct SplitVarImpl VL_NOT_FINAL {
stmtp->unlinkFrBack();
// Insert begin-end because temp value may be inserted to this block later.
const std::string name = "__VsplitVarBlk" + cvtToStr(modp->user1Inc(1));
ap->addStmtsp(new AstBegin{ap->fileline(), name, stmtp});
ap->addStmtsp(new AstBegin{ap->fileline(), name, stmtp, false, false});
}
}
@@ -204,7 +204,7 @@ struct SplitVarImpl VL_NOT_FINAL {
// Insert begin-end because temp value may be inserted to this block later.
FileLine* const fl = initp->fileline();
const std::string name = "__VsplitVarBlk" + cvtToStr(modp->user1Inc(1));
initp->replaceWith(new AstInitial{fl, new AstBegin{fl, name, stmtp}});
initp->replaceWith(new AstInitial{fl, new AstBegin{fl, name, stmtp, false, false}});
VL_DO_DANGLING(initp->deleteTree(), initp);
}
}