diff --git a/Changes b/Changes index 658674056..4292836f0 100644 --- a/Changes +++ b/Changes @@ -13,6 +13,8 @@ indicates the contributor was also the author of the fix; Thanks! **** Fix naming of generate for blocks to prevent non-inline name conflict. +**** Fix redundant statements remaining after table optimization. + * Verilator 3.542 08/11/2006 Stable **** Fix extraneous UNSIGNED warning when comparing genvars. [David Hewson] diff --git a/src/V3Table.cpp b/src/V3Table.cpp index 616074e2e..c385191fa 100644 --- a/src/V3Table.cpp +++ b/src/V3Table.cpp @@ -501,7 +501,7 @@ private: // Link it in. if (AstAlways* nodeap = nodep->castAlways()) { // Keep sensitivity list, but delete all else - nodeap->bodysp()->unlinkFrBack()->deleteTree(); + nodeap->bodysp()->unlinkFrBackWithNext()->deleteTree(); nodeap->addStmtp(stmtsp); if (debug()>=6) nodeap->dumpTree(cout," table_new: "); } else {