Fix cppcheck warnings. No functional change intended.

This commit is contained in:
Wilson Snyder
2018-06-14 18:59:24 -04:00
parent 5d26bca55c
commit 0eb1d0a84e
14 changed files with 34 additions and 18 deletions
+2 -1
View File
@@ -119,7 +119,8 @@ private:
<<nodep->varp()->prettyName());
}
}
AstVarScope* createVarSc(AstVarScope* oldvarscp, string name, int width/*0==fromoldvar*/, AstNodeDType* newdtypep) {
AstVarScope* createVarSc(AstVarScope* oldvarscp, const string& name,
int width/*0==fromoldvar*/, AstNodeDType* newdtypep) {
// Because we've already scoped it, we may need to add both the AstVar and the AstVarScope
if (!oldvarscp->scopep()) oldvarscp->v3fatalSrc("Var unscoped");
AstVar* varp;