diff options
| author | Timm Baeder <tbaeder@redhat.com> | 2024-04-18 07:39:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-18 07:39:29 +0200 |
| commit | 3d56ea05b6c746a7144f643bef2ebd599f605b8b (patch) | |
| tree | dc3706e562d332333f39f0777cb7e8b6a4cfc83e /clang/lib/CodeGen/CGExprAgg.cpp | |
| parent | fbca90b609f6c42ce7e4c9bb3ee8bd2c230a670c (diff) | |
| download | llvm-3d56ea05b6c746a7144f643bef2ebd599f605b8b.zip llvm-3d56ea05b6c746a7144f643bef2ebd599f605b8b.tar.gz llvm-3d56ea05b6c746a7144f643bef2ebd599f605b8b.tar.bz2 | |
[clang][NFC] Fix FieldDecl::isUnnamedBitfield() capitalization (#89048)
We always capitalize bitfield as "BitField".
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprAgg.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index 1b9287e..355fec4 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/lib/CodeGen/CGExprAgg.cpp @@ -1755,7 +1755,9 @@ void AggExprEmitter::VisitCXXParenListOrInitListExpr( // Make sure that it's really an empty and not a failure of // semantic analysis. for (const auto *Field : record->fields()) - assert((Field->isUnnamedBitfield() || Field->isAnonymousStructOrUnion()) && "Only unnamed bitfields or ananymous class allowed"); + assert( + (Field->isUnnamedBitField() || Field->isAnonymousStructOrUnion()) && + "Only unnamed bitfields or ananymous class allowed"); #endif return; } @@ -1783,7 +1785,7 @@ void AggExprEmitter::VisitCXXParenListOrInitListExpr( break; // Always skip anonymous bitfields. - if (field->isUnnamedBitfield()) + if (field->isUnnamedBitField()) continue; // We're done if we reach the end of the explicit initializers, we @@ -1988,7 +1990,7 @@ static CharUnits GetNumNonZeroBytesInInit(const Expr *E, CodeGenFunction &CGF) { if (Field->getType()->isIncompleteArrayType() || ILEElement == ILE->getNumInits()) break; - if (Field->isUnnamedBitfield()) + if (Field->isUnnamedBitField()) continue; const Expr *E = ILE->getInit(ILEElement++); |
