Fix false LATCH warning on --assert 'unique else if' (#4033) (#4054).

This commit is contained in:
Jesse Taube
2023-03-21 04:42:19 -04:00
committed by GitHub
parent 2aa6a229ca
commit daf157e6c0
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -19,6 +19,7 @@ Verilator 5.009 devel
* Support $fopen as an expression.
* Support class extends of package::class.
* Change ZERODLY to a warning.
* Fix false LATCH warning on --assert 'unique else if' (#4033). [Jesse Taube]
* Fix UNDRIVEN warning seg fault (#3989). [Felix Neumärker]
* Fix symbol entries when inheriting classes (#3995) (#3996). [Krzysztof Boroński]
* Fix push to dynamic queue in struct (#4015). [ezchi]
+1
View File
@@ -61,6 +61,7 @@ Jamie Iles
Jan Van Winkel
Jean Berniolles
Jeremy Bennett
Jesse Taube
Jevin Sweval
Jiacheng Qian
Jiuyang Liu
+1
View File
@@ -2975,6 +2975,7 @@ private:
AstNode* const thensp = nodep->thensp()->unlinkFrBackWithNext();
AstNode* const elsesp = nodep->elsesp()->unlinkFrBackWithNext();
AstIf* const ifp = new AstIf{nodep->fileline(), condp, elsesp, thensp};
ifp->isBoundsCheck(nodep->isBoundsCheck()); // Copy bounds check info
ifp->branchPred(nodep->branchPred().invert());
nodep->replaceWith(ifp);
VL_DO_DANGLING(nodep->deleteTree(), nodep);