mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 01:52:17 +02:00
Fix empty for blocks
git-svn-id: file://localhost/svn/verilator/trunk/verilator@888 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
+6
-1
@@ -252,7 +252,12 @@ private:
|
||||
if (clonedIncsp) {
|
||||
// Previous iteration of loop set the variable.
|
||||
// This set is redundant with this next iteration and can be removed.
|
||||
clonedIncsp->unlinkFrBack()->deleteTree();
|
||||
if (clonedIncsp == newbodysp) { // Increment was only thing in list
|
||||
newbodysp = NULL;
|
||||
} else {
|
||||
clonedIncsp->unlinkFrBack();
|
||||
}
|
||||
clonedIncsp->deleteTree();
|
||||
}
|
||||
clonedIncsp = incp->clonep(); if (!clonedIncsp) nodep->v3fatalSrc("inc failed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user