[clang] [clang][bytecode] Fix a mishap in HasPtrField calculation (PR #184557)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 23:16:28 PDT 2026


================
@@ -24,13 +24,13 @@ Record::Record(const RecordDecl *Decl, BaseList &&SrcBases,
 
   for (Base &B : Bases) {
     BaseMap[B.Decl] = &B;
-    if (!HasPtrField)
-      HasPtrField |= B.R->hasPtrField();
+    if (!this->HasPtrField)
----------------
tbaederr wrote:

No but github.com/llvm/llvm-project/pull/183706 breaks spectacularly without this fix.

https://github.com/llvm/llvm-project/pull/184557


More information about the cfe-commits mailing list