Author: Timm Baeder Date: 2025-03-25T12:32:27+01:00 New Revision: 822aa5ec1afee68fb16457ff06de9111c1b62450
URL: https://github.com/llvm/llvm-project/commit/822aa5ec1afee68fb16457ff06de9111c1b62450 DIFF: https://github.com/llvm/llvm-project/commit/822aa5ec1afee68fb16457ff06de9111c1b62450.diff LOG: [clang][bytecode][NFC] use Field::isUnnamedBitField() directly (#132914) Instead of going though Decl. Added: Modified: clang/lib/AST/ByteCode/Compiler.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp index 5242a524308a8..f2e98218f373b 100644 --- a/clang/lib/AST/ByteCode/Compiler.cpp +++ b/clang/lib/AST/ByteCode/Compiler.cpp @@ -1818,7 +1818,7 @@ bool Compiler<Emitter>::visitInitList(ArrayRef<const Expr *> Inits, for (const Expr *Init : Inits) { // Skip unnamed bitfields. while (InitIndex < R->getNumFields() && - R->getField(InitIndex)->Decl->isUnnamedBitField()) + R->getField(InitIndex)->isUnnamedBitField()) ++InitIndex; if (std::optional<PrimType> T = classify(Init)) { @@ -4084,7 +4084,7 @@ bool Compiler<Emitter>::visitZeroRecordInitializer(const Record *R, assert(R); // Fields for (const Record::Field &Field : R->fields()) { - if (Field.Decl->isUnnamedBitField()) + if (Field.isUnnamedBitField()) continue; const Descriptor *D = Field.Desc; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits