No need for V3Signed to recurse into generate if.

This commit is contained in:
Wilson Snyder 2009-09-22 18:58:59 -04:00
parent 7a86514505
commit cb8b0d3597
2 changed files with 8 additions and 1 deletions

View File

@ -161,6 +161,13 @@ private:
// so, it's just
nodep->iterateChildren(*this);
}
virtual void visit(AstNodeIf* nodep, AstNUser*) {
if (!nodep->castGenIf()) { // for m_paramsOnly
nodep->ifsp()->iterateAndNext(*this);
nodep->elsesp()->iterateAndNext(*this);
}
nodep->condp()->iterateAndNext(*this);
}
virtual void visit(AstPin* nodep, AstNUser*) {
// Same as above taskref argument.
nodep->iterateChildren(*this);

View File

@ -577,7 +577,7 @@ private:
virtual void visit(AstNodeIf* nodep, AstNUser*) {
// TOP LEVEL NODE
//if (debug()) nodep->dumpTree(cout," IfPre: ");
if (!nodep->castGenIf()) {
if (!nodep->castGenIf()) { // for m_paramsOnly
nodep->ifsp()->iterateAndNext(*this);
nodep->elsesp()->iterateAndNext(*this);
}