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

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 24 05:54:20 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Jay Foad (jayfoad)

<details>
<summary>Changes</summary>

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


---
Full diff: https://github.com/llvm/llvm-project/pull/113559.diff


1 Files Affected:

- (modified) clang/include/clang/AST/Type.h (+1-1) 


``````````diff
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;
   };
 

``````````

</details>


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


More information about the cfe-commits mailing list