Internals: Favor UASSERT_OBJ when have object.

This commit is contained in:
Wilson Snyder
2022-07-12 18:02:57 -04:00
parent 87f1e06c41
commit 63507e8e29
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -248,8 +248,8 @@ private:
VL_RESTORER(m_funcp);
if (!nodep->user1()) {
// Static functions should have been moved under the corresponding AstClassPackage
UASSERT(!(nodep->isStatic() && VN_IS(m_modp, Class)),
"Static function under AstClass");
UASSERT_OBJ(!(nodep->isStatic() && VN_IS(m_modp, Class)), nodep,
"Static function under AstClass");
m_funcp = nodep;
iterateChildren(nodep);
nodep->user1(true);