Internals: Fix missing broken check

This commit is contained in:
Wilson Snyder 2023-03-16 21:14:49 -04:00
parent 51ba4a1531
commit 4240c29f4b

View File

@ -115,6 +115,7 @@ void AstNodeUOrStructDType::repairMemberCache() {
}
const char* AstNodeUOrStructDType::broken() const {
BROKEN_RTN(m_classOrPackagep && !m_classOrPackagep->brokeExists());
std::unordered_set<AstMemberDType*> exists;
for (AstMemberDType* itemp = membersp(); itemp; itemp = VN_AS(itemp->nextp(), MemberDType)) {
exists.insert(itemp);