Fix loop iterator

This commit is contained in:
Wilson Snyder 2011-12-26 18:32:23 -05:00
parent 2ac281eb3e
commit d5b2dda2e8

View File

@ -362,7 +362,7 @@ private:
// Definition must be inserted right after the variable (etc) that needed it
// AstVar, AstTypedef, AstNodeFTask are common containers
AstNode* backp = nodep->backp();
for (; backp; backp=nodep->backp()) {
for (; backp; backp=backp->backp()) {
if (backp->castVar()) break;
else if (backp->castTypedef()) break;
else if (backp->castNodeFTask()) break;