Internals: add a few userIncs, No functional change

This commit is contained in:
Wilson Snyder 2011-01-18 21:19:12 -05:00
parent 48df52d743
commit 481b261458
2 changed files with 2 additions and 5 deletions

View File

@ -345,9 +345,7 @@ private:
m_nextDlyp = NULL;
}
virtual void visit(AstVarRef* nodep, AstNUser*) {
if (!nodep->user2()) { // Not done yet
nodep->user2(true);
if (!nodep->user2Inc()) { // Not done yet
if (m_inDly && nodep->lvalue()) {
UINFO(4,"AssignDlyVar: "<<nodep<<endl);
markVarUsage(nodep->varScopep(), VU_DLY);

View File

@ -131,8 +131,7 @@ private:
// Make sure all parameters are constantified
virtual void visit(AstVar* nodep, AstNUser*) {
if (!nodep->user5()) {
nodep->user5(1); // Mark done
if (!nodep->user5Inc()) { // Process once
nodep->iterateChildren(*this);
if (nodep->isParam()) {
if (!nodep->hasSimpleInit()) { nodep->v3fatalSrc("Parameter without initial value"); }