From 5105a0f7f5ac0c30260bc1df162141e22abd7368 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 27 Aug 2006 15:07:59 +0000 Subject: [PATCH] Fix V3Table not deleting next nodes. git-svn-id: file://localhost/svn/verilator/trunk/verilator@757 77ca24e4-aefa-0310-84f0-b9a241c72d87 --- Changes | 2 ++ src/V3Table.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 {