mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 06:23:39 +02:00
Internals: Make all AstBegin constructor arguments explicit (#6464)
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user