Internals: Create user#Inc routines

This commit is contained in:
Wilson Snyder
2010-04-15 20:56:54 -04:00
parent 10689ffaba
commit 930cbeec17
13 changed files with 27 additions and 36 deletions
+1 -2
View File
@@ -177,8 +177,7 @@ private:
// VISITORS //========== Case assertions
virtual void visit(AstCase* nodep, AstNUser*) {
nodep->iterateChildren(*this);
if (!nodep->user1()) {
nodep->user1(true);
if (!nodep->user1Inc()) {
bool has_default=false;
for (AstCaseItem* itemp = nodep->itemsp(); itemp; itemp=itemp->nextp()->castCaseItem()) {
if (itemp->isDefault()) has_default=true;