From 4240c29f4bd3a2b79e81271964c2f6f31ffd05bf Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 16 Mar 2023 21:14:49 -0400 Subject: [PATCH] Internals: Fix missing broken check --- src/V3AstNodes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3AstNodes.cpp b/src/V3AstNodes.cpp index 3d3135014..bb721a2ee 100644 --- a/src/V3AstNodes.cpp +++ b/src/V3AstNodes.cpp @@ -115,6 +115,7 @@ void AstNodeUOrStructDType::repairMemberCache() { } const char* AstNodeUOrStructDType::broken() const { + BROKEN_RTN(m_classOrPackagep && !m_classOrPackagep->brokeExists()); std::unordered_set exists; for (AstMemberDType* itemp = membersp(); itemp; itemp = VN_AS(itemp->nextp(), MemberDType)) { exists.insert(itemp);