Fix loop iterator
This commit is contained in:
parent
2ac281eb3e
commit
d5b2dda2e8
|
|
@ -362,7 +362,7 @@ private:
|
||||||
// Definition must be inserted right after the variable (etc) that needed it
|
// Definition must be inserted right after the variable (etc) that needed it
|
||||||
// AstVar, AstTypedef, AstNodeFTask are common containers
|
// AstVar, AstTypedef, AstNodeFTask are common containers
|
||||||
AstNode* backp = nodep->backp();
|
AstNode* backp = nodep->backp();
|
||||||
for (; backp; backp=nodep->backp()) {
|
for (; backp; backp=backp->backp()) {
|
||||||
if (backp->castVar()) break;
|
if (backp->castVar()) break;
|
||||||
else if (backp->castTypedef()) break;
|
else if (backp->castTypedef()) break;
|
||||||
else if (backp->castNodeFTask()) break;
|
else if (backp->castNodeFTask()) break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue