Add assertion on firing event inside class (#5597)

This commit is contained in:
Wilson Snyder
2024-11-09 09:28:40 -05:00
parent 138daaf565
commit 1e546bb9d9
4 changed files with 51 additions and 0 deletions
+1
View File
@@ -891,6 +891,7 @@ class DelayedVisitor final : public VNVisitor {
ifp->addThensp(newp);
}
UASSERT_OBJ(m_activep, nodep, "No active to handle FireEvent");
AstActive* const activep = new AstActive{flp, "nba-event", m_activep->sensesp()};
m_activep->addNextHere(activep);
activep->addStmtsp(prep);