mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix lost $stop on implied assertion $error failures.
This commit is contained in:
+2
-3
@@ -737,9 +737,8 @@ class AssertVisitor final : public VNVisitor {
|
||||
// Cover adds COVERINC by AstNode::addNext, thus need to clone next too.
|
||||
nodep->replaceWith(m_passsp->cloneTree(true));
|
||||
} else if (!nodep->pass() && m_failsp) {
|
||||
// Asserts with multiple statements are wrapped in implicit begin/end blocks so no
|
||||
// need to clone next.
|
||||
nodep->replaceWith(m_failsp->cloneTree(false));
|
||||
// Stop may be added, thus need to clone next too.
|
||||
nodep->replaceWith(m_failsp->cloneTree(true));
|
||||
} else {
|
||||
nodep->unlinkFrBack();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user