Skip to content

Commit af1ff56

Browse files
committed
[NFC] minor fixup
1 parent cf8be1b commit af1ff56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/RecordLayoutBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,10 +2436,10 @@ static bool isItaniumPOD(const ASTContext &Context, const CXXRecordDecl *RD) {
24362436
if (FD->isBitField()) {
24372437
QualType DeclaredType = FD->getType();
24382438
unsigned DeclaredWidth;
2439-
if (const BitIntType *BIT = DeclaredType->getAs<BitIntType>())
2439+
if (const auto *BIT = DeclaredType->getAs<BitIntType>())
24402440
DeclaredWidth = BIT->getNumBits();
24412441
else
2442-
DeclaredWidth = Context.getTypeSize(FD->getType());
2442+
DeclaredWidth = Context.getTypeSize(DeclaredType);
24432443

24442444
if (FD->getBitWidthValue(Context) > DeclaredWidth)
24452445
return true;

0 commit comments

Comments
 (0)