Internals: Fix some object-less asserts

This commit is contained in:
Wilson Snyder
2025-09-20 17:40:50 -04:00
parent 580a843474
commit a4db488b02
8 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ class LinkIncVisitor final : public VNVisitor {
} else if (m_modp) {
stmtsp = m_modp->stmtsp();
}
UASSERT(stmtsp, "Variable not under FTASK/MODULE");
UASSERT_OBJ(stmtsp, newp, "Variable not under FTASK/MODULE");
newp->addNext(stmtsp->unlinkFrBackWithNext());
if (m_ftaskp) {
m_ftaskp->addStmtsp(newp);