From d5b2dda2e82d6d487fb974ce75f7f4a937a7bc65 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 26 Dec 2011 18:32:23 -0500 Subject: [PATCH] Fix loop iterator --- src/V3LinkParse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3LinkParse.cpp b/src/V3LinkParse.cpp index 35698056a..d23edfe6e 100644 --- a/src/V3LinkParse.cpp +++ b/src/V3LinkParse.cpp @@ -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;