https://github.com/jayfoad created 
https://github.com/llvm/llvm-project/pull/113559

BuiltinType::LastKind is currently 507 which is close to the current
limit of 511.


>From fe852c49f160d9b76e61f151bc857eb8493a47db Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.f...@amd.com>
Date: Thu, 24 Oct 2024 13:41:31 +0100
Subject: [PATCH] [AST] Bump Type::NumOfBuiltinTypeBits. NFCI.

BuiltinType::LastKind is currently 507 which is close to the current
limit of 511.
---
 clang/include/clang/AST/Type.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index ba3161c366f4d9..2598a794fe8796 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/include/clang/AST/Type.h
@@ -1930,7 +1930,7 @@ class alignas(TypeAlignment) Type : public 
ExtQualsTypeCommonBase {
     unsigned : NumTypeBits;
 
     /// The kind (BuiltinType::Kind) of builtin type this is.
-    static constexpr unsigned NumOfBuiltinTypeBits = 9;
+    static constexpr unsigned NumOfBuiltinTypeBits = 10;
     unsigned Kind : NumOfBuiltinTypeBits;
   };
 

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to