Skip to content

Commit 822aa5e

Browse files
authored
[clang][bytecode][NFC] use Field::isUnnamedBitField() directly (#132914)
Instead of going though Decl.
1 parent 9910d34 commit 822aa5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/ByteCode/Compiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ bool Compiler<Emitter>::visitInitList(ArrayRef<const Expr *> Inits,
18181818
for (const Expr *Init : Inits) {
18191819
// Skip unnamed bitfields.
18201820
while (InitIndex < R->getNumFields() &&
1821-
R->getField(InitIndex)->Decl->isUnnamedBitField())
1821+
R->getField(InitIndex)->isUnnamedBitField())
18221822
++InitIndex;
18231823

18241824
if (std::optional<PrimType> T = classify(Init)) {
@@ -4084,7 +4084,7 @@ bool Compiler<Emitter>::visitZeroRecordInitializer(const Record *R,
40844084
assert(R);
40854085
// Fields
40864086
for (const Record::Field &Field : R->fields()) {
4087-
if (Field.Decl->isUnnamedBitField())
4087+
if (Field.isUnnamedBitField())
40884088
continue;
40894089

40904090
const Descriptor *D = Field.Desc;

0 commit comments

Comments
 (0)