[clang] [AST] Bump Type::NumOfBuiltinTypeBits. NFCI. (PR #113559)

Jay Foad via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 24 05:53:44 PDT 2024


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.foad at 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;
   };
 



More information about the cfe-commits mailing list