File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ class alignas(8) Expr {
149
149
unsigned IsSingleUnicodeScalar : 1 ;
150
150
unsigned IsSingleExtendedGraphemeCluster : 1 ;
151
151
};
152
- enum { NumStringLiteralExprBits = NumLiteralExprBits + 2 };
152
+ enum { NumStringLiteralExprBits = NumLiteralExprBits + 4 };
153
153
static_assert (NumStringLiteralExprBits <= 32 , " fits in an unsigned" );
154
154
155
155
class DeclRefExprBitfields {
@@ -271,6 +271,7 @@ class alignas(8) Expr {
271
271
unsigned IsSourceScalar : 1 ;
272
272
};
273
273
enum { NumTupleShuffleExprBits = NumImplicitConversionExprBits + 1 };
274
+ static_assert (NumTupleShuffleExprBits <= 32 , " fits in an unsigned" );
274
275
275
276
class ApplyExprBitfields {
276
277
friend class ApplyExpr ;
@@ -287,7 +288,7 @@ class alignas(8) Expr {
287
288
unsigned : NumExprBits;
288
289
unsigned CastKind : NumCheckedCastKindBits;
289
290
};
290
- enum { NumCheckedCastExprBits = NumExprBits + 4 };
291
+ enum { NumCheckedCastExprBits = NumExprBits + NumCheckedCastKindBits };
291
292
static_assert (NumCheckedCastExprBits <= 32 , " fits in an unsigned" );
292
293
static_assert (unsigned (CheckedCastKind::Last_CheckedCastKind)
293
294
< (1 << NumCheckedCastKindBits),
You can’t perform that action at this time.
0 commit comments