Internals: Fix preincrements to reduce cppcheck warnings

This commit is contained in:
Wilson Snyder
2011-08-04 21:15:24 -04:00
parent ad53833040
commit c83f2a4abd
23 changed files with 43 additions and 45 deletions
+1 -3
View File
@@ -224,7 +224,6 @@ private:
}
//
//=== Setting/not setting boolean: __Vdlyvset__
bool sharedVset = false;
AstVarScope* setvscp;
if (nodep->user3p()) {
@@ -232,9 +231,8 @@ private:
// then we told this nodep->user3 we can use its Vdlyvset rather than making a new one.
// This is good for code like:
// for (i=0; i<5; i++) vector[i] <= something;
sharedVset = true;
setvscp = nodep->user3p()->castNode()->castVarScope();
m_statSharedSet++;
++m_statSharedSet;
} else { // Create new one
string setvarname = (string("__Vdlyvset__")+oldvarp->shortName()+"__v"+cvtToStr(modVecNum));
setvscp = createVarSc(varrefp->varScopep(), setvarname, 1);