[clang] [clang][AST] Added assert to prevent infinite recursion in computing layout (PR #154134)
Michael Buch via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 9 04:20:15 PDT 2025
================
@@ -187,6 +187,8 @@ void EmptySubobjectMap::ComputeEmptySubobjectSizes() {
// Check the bases.
for (const CXXBaseSpecifier &Base : Class->bases()) {
const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl();
+ // Assert to prevent infinite recursion.
----------------
Michael137 wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/154134
More information about the cfe-commits
mailing list