[clang] [CLANG] bump NUM_PREDEF_TYPE_IDS (PR #113728)

Gang Chen via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 25 11:56:41 PDT 2024


https://github.com/cmc-rep created https://github.com/llvm/llvm-project/pull/113728

Fix assertion problem

>From 1a67accc27c4bf69e91548cf552cbd69566cb42f Mon Sep 17 00:00:00 2001
From: gangc <gangc at amd.com>
Date: Fri, 25 Oct 2024 11:53:34 -0700
Subject: [PATCH] [CLANG] bump NUM_PREDEF_TYPE_IDS

Fix assertion problem
---
 clang/include/clang/Serialization/ASTBitCodes.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/Serialization/ASTBitCodes.h b/clang/include/clang/Serialization/ASTBitCodes.h
index 99232fd2135790..3ddbc5fcd26c44 100644
--- a/clang/include/clang/Serialization/ASTBitCodes.h
+++ b/clang/include/clang/Serialization/ASTBitCodes.h
@@ -1149,7 +1149,7 @@ enum PredefinedTypeIDs {
 ///
 /// Type IDs for non-predefined types will start at
 /// NUM_PREDEF_TYPE_IDs.
-const unsigned NUM_PREDEF_TYPE_IDS = 512;
+const unsigned NUM_PREDEF_TYPE_IDS = 513;
 
 // Ensure we do not overrun the predefined types we reserved
 // in the enum PredefinedTypeIDs above.



More information about the cfe-commits mailing list