@@ -2774,7 +2774,7 @@ getSubobjectSizeInBits(const FieldDecl *Field, const ASTContext &Context,
27742774 if (Field->isUnnamedBitField())
27752775 return 0;
27762776
2777- int64_t BitfieldSize = Field->getBitWidthValue(Context );
2777+ int64_t BitfieldSize = Field->getBitWidthValue();
27782778 if (IsBitIntType) {
27792779 if ((unsigned)BitfieldSize >
27802780 cast<BitIntType>(Field->getType())->getNumBits())
@@ -7745,7 +7745,7 @@ QualType ASTContext::isPromotableBitField(Expr *E) const {
77457745
77467746 QualType FT = Field->getType();
77477747
7748- uint64_t BitWidth = Field->getBitWidthValue(*this );
7748+ uint64_t BitWidth = Field->getBitWidthValue();
77497749 uint64_t IntSize = getTypeSize(IntTy);
77507750 // C++ [conv.prom]p5:
77517751 // A prvalue for an integral bit-field can be converted to a prvalue of type
@@ -8773,7 +8773,7 @@ static void EncodeBitField(const ASTContext *Ctx, std::string& S,
87738773 S += getObjCEncodingForPrimitiveType(Ctx, BT);
87748774 }
87758775 }
8776- S += llvm::utostr(FD->getBitWidthValue(*Ctx ));
8776+ S += llvm::utostr(FD->getBitWidthValue());
87778777}
87788778
87798779// Helper function for determining whether the encoded type string would include
@@ -9199,7 +9199,7 @@ void ASTContext::getObjCEncodingForStructureImpl(RecordDecl *RDecl,
91999199 }
92009200
92019201 for (FieldDecl *Field : RDecl->fields()) {
9202- if (!Field->isZeroLengthBitField(*this ) && Field->isZeroSize(*this))
9202+ if (!Field->isZeroLengthBitField() && Field->isZeroSize(*this))
92039203 continue;
92049204 uint64_t offs = layout.getFieldOffset(Field->getFieldIndex());
92059205 FieldOrBaseOffsets.insert(FieldOrBaseOffsets.upper_bound(offs),
@@ -9296,7 +9296,7 @@ void ASTContext::getObjCEncodingForStructureImpl(RecordDecl *RDecl,
92969296 if (field->isBitField()) {
92979297 EncodeBitField(this, S, field->getType(), field);
92989298#ifndef NDEBUG
9299- CurOffs += field->getBitWidthValue(*this );
9299+ CurOffs += field->getBitWidthValue();
93009300#endif
93019301 } else {
93029302 QualType qt = field->getType();
0 commit comments