================ @@ -1791,6 +1797,7 @@ bool TypeSystemClang::RecordHasFields(const RecordDecl *record_decl) { for (base_class = cxx_record_decl->bases_begin(), base_class_end = cxx_record_decl->bases_end(); base_class != base_class_end; ++base_class) { + assert(record_decl != base_class->getType()->getAsCXXRecordDecl()); ---------------- Michael137 wrote:
```suggestion assert(record_decl != base_class->getType()->getAsCXXRecordDecl() && "Base can't inherit from itself."); ``` https://github.com/llvm/llvm-project/pull/157674 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits