Internals: Fix cppcheck warnings

This commit is contained in:
Wilson Snyder
2024-01-17 19:48:07 -05:00
parent 8b03f2d47b
commit 89cfa0737f
12 changed files with 30 additions and 28 deletions
+2 -3
View File
@@ -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);
}