diff --git a/src/V3Signed.cpp b/src/V3Signed.cpp index fae3a31ef..221fe9efd 100644 --- a/src/V3Signed.cpp +++ b/src/V3Signed.cpp @@ -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); diff --git a/src/V3Width.cpp b/src/V3Width.cpp index e8dd9fcd1..574f85949 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -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); }