Skip to content

Commit 3fe3b35

Browse files
author
git apple-llvm automerger
committed
Merge commit '096c20c0b128' from llvm.org/main into next
2 parents 22f54e4 + 096c20c commit 3fe3b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/TypeLocBuilder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
namespace clang {
2121

2222
class TypeLocBuilder {
23-
enum { InlineCapacity = 8 * sizeof(SourceLocation) };
23+
static constexpr int InlineCapacity = 8 * sizeof(SourceLocation);
2424

2525
/// The underlying location-data buffer. Data grows from the end
2626
/// of the buffer backwards.
@@ -38,7 +38,7 @@ class TypeLocBuilder {
3838
#endif
3939

4040
/// The inline buffer.
41-
enum { BufferMaxAlignment = alignof(void *) };
41+
static constexpr int BufferMaxAlignment = alignof(void *);
4242
alignas(BufferMaxAlignment) char InlineBuffer[InlineCapacity];
4343
unsigned NumBytesAtAlign4;
4444
bool AtAlign8;

0 commit comments

Comments
 (0)