[clang] [llvm] [Clang] Fix definition of layout-compatible to ignore empty classes (PR #92103)
Vlad Serebrennikov via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 00:24:45 PDT 2024
================
@@ -561,6 +561,42 @@ void CXXRecordDecl::addedClassSubobject(CXXRecordDecl *Subobj) {
data().StructuralIfLiteral = false;
}
+const CXXRecordDecl *CXXRecordDecl::getStandardLayoutBaseWithFields() const {
+#ifndef NDEBUG
----------------
Endilll wrote:
We have `EXPENSIVE_CHECKS` macro to guard expensive checks.
https://github.com/llvm/llvm-project/pull/92103
More information about the llvm-commits
mailing list