mirror of
https://github.com/verilator/verilator.git
synced 2025-04-21 12:06:55 +00:00
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
|
||||
// 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;
|
||||
|
Loading…
Reference in New Issue
Block a user