Internals: Fix cppcheck warnings. No functional change intended.

This commit is contained in:
Wilson Snyder
2022-11-21 21:40:49 -05:00
parent 73d6de4471
commit 66d85b3381
17 changed files with 35 additions and 31 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ void V3DfgPasses::cse(DfgGraph& dfg, V3DfgCseContext& ctx) {
removeUnused(dfg);
}
void V3DfgPasses::inlineVars(DfgGraph& dfg) {
void V3DfgPasses::inlineVars(const DfgGraph& dfg) {
for (DfgVertexVar *vtxp = dfg.varVerticesBeginp(), *nextp; vtxp; vtxp = nextp) {
nextp = vtxp->verticesNext();
if (DfgVarPacked* const varp = vtxp->cast<DfgVarPacked>()) {