@@ -2795,7 +2795,7 @@ getSubobjectSizeInBits(const FieldDecl *Field, const ASTContext &Context,
27952795 if (Field->isUnnamedBitField())
27962796 return 0;
27972797
2798- int64_t BitfieldSize = Field->getBitWidthValue(Context );
2798+ int64_t BitfieldSize = Field->getBitWidthValue();
27992799 if (IsBitIntType) {
28002800 if ((unsigned)BitfieldSize >
28012801 cast<BitIntType>(Field->getType())->getNumBits())
@@ -7769,7 +7769,7 @@ QualType ASTContext::isPromotableBitField(Expr *E) const {
77697769
77707770 QualType FT = Field->getType();
77717771
7772- uint64_t BitWidth = Field->getBitWidthValue(*this );
7772+ uint64_t BitWidth = Field->getBitWidthValue();
77737773 uint64_t IntSize = getTypeSize(IntTy);
77747774 // C++ [conv.prom]p5:
77757775 // A prvalue for an integral bit-field can be converted to a prvalue of type
@@ -8797,7 +8797,7 @@ static void EncodeBitField(const ASTContext *Ctx, std::string& S,
87978797 S += getObjCEncodingForPrimitiveType(Ctx, BT);
87988798 }
87998799 }
8800- S += llvm::utostr(FD->getBitWidthValue(*Ctx ));
8800+ S += llvm::utostr(FD->getBitWidthValue());
88018801}
88028802
88038803// Helper function for determining whether the encoded type string would include
@@ -9223,7 +9223,7 @@ void ASTContext::getObjCEncodingForStructureImpl(RecordDecl *RDecl,
92239223 }
92249224
92259225 for (FieldDecl *Field : RDecl->fields()) {
9226- if (!Field->isZeroLengthBitField(*this ) && Field->isZeroSize(*this))
9226+ if (!Field->isZeroLengthBitField() && Field->isZeroSize(*this))
92279227 continue;
92289228 uint64_t offs = layout.getFieldOffset(Field->getFieldIndex());
92299229 FieldOrBaseOffsets.insert(FieldOrBaseOffsets.upper_bound(offs),
@@ -9320,7 +9320,7 @@ void ASTContext::getObjCEncodingForStructureImpl(RecordDecl *RDecl,
93209320 if (field->isBitField()) {
93219321 EncodeBitField(this, S, field->getType(), field);
93229322#ifndef NDEBUG
9323- CurOffs += field->getBitWidthValue(*this );
9323+ CurOffs += field->getBitWidthValue();
93249324#endif
93259325 } else {
93269326 QualType qt = field->getType();
0 commit comments