[clang] [clang][bytecode] Fix a mishap in HasPtrField calculation (PR #184557)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 10 18:07:33 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)
----------------
shafik wrote:
This is indeed a tricky bug, I would like to see a test that verifies this behavior. Since no tests changed I would assume we are not covering this particular corner case?
https://github.com/llvm/llvm-project/pull/184557
More information about the cfe-commits
mailing list