mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 01:52:17 +02:00
Internals: Fix cppcheck warnings
This commit is contained in:
+2
-3
@@ -391,9 +391,8 @@ class TraceDeclVisitor final : public VNVisitor {
|
||||
} else {
|
||||
// This is a subscope: insert a placeholder to be fixed up later
|
||||
AstCell* const cellp = entry.cellp();
|
||||
FileLine* const flp = cellp->fileline();
|
||||
AstNodeStmt* const stmtp
|
||||
= new AstComment{flp, "Cell init for: " + cellp->prettyName()};
|
||||
AstNodeStmt* const stmtp = new AstComment{
|
||||
cellp->fileline(), "Cell init for: " + cellp->prettyName()};
|
||||
addToSubFunc(stmtp);
|
||||
m_cellInitPlaceholders.emplace_back(nodep, cellp, stmtp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user