@@ -5209,7 +5209,7 @@ QualType ASTContext::getEnumType(const EnumDecl *Decl) const {
52095209 return QualType(newType, 0);
52105210}
52115211
5212- bool ASTContext::computeBestEnumTypes(bool isPacked , unsigned NumNegativeBits,
5212+ bool ASTContext::computeBestEnumTypes(bool IsPacked , unsigned NumNegativeBits,
52135213 unsigned NumPositiveBits,
52145214 QualType &BestType,
52155215 QualType &BestPromotionType) {
@@ -5222,11 +5222,11 @@ bool ASTContext::computeBestEnumTypes(bool isPacked, unsigned NumNegativeBits,
52225222 // If there is a negative value, figure out the smallest integer type (of
52235223 // int/long/longlong) that fits.
52245224 // If it's packed, check also if it fits a char or a short.
5225- if (isPacked && NumNegativeBits <= CharWidth &&
5225+ if (IsPacked && NumNegativeBits <= CharWidth &&
52265226 NumPositiveBits < CharWidth) {
52275227 BestType = SignedCharTy;
52285228 BestWidth = CharWidth;
5229- } else if (isPacked && NumNegativeBits <= ShortWidth &&
5229+ } else if (IsPacked && NumNegativeBits <= ShortWidth &&
52305230 NumPositiveBits < ShortWidth) {
52315231 BestType = ShortTy;
52325232 BestWidth = ShortWidth;
@@ -5251,11 +5251,11 @@ bool ASTContext::computeBestEnumTypes(bool isPacked, unsigned NumNegativeBits,
52515251 // If there is no negative value, figure out the smallest type that fits
52525252 // all of the enumerator values.
52535253 // If it's packed, check also if it fits a char or a short.
5254- if (isPacked && NumPositiveBits <= CharWidth) {
5254+ if (IsPacked && NumPositiveBits <= CharWidth) {
52555255 BestType = UnsignedCharTy;
52565256 BestPromotionType = IntTy;
52575257 BestWidth = CharWidth;
5258- } else if (isPacked && NumPositiveBits <= ShortWidth) {
5258+ } else if (IsPacked && NumPositiveBits <= ShortWidth) {
52595259 BestType = UnsignedShortTy;
52605260 BestPromotionType = IntTy;
52615261 BestWidth = ShortWidth;
0 commit comments