From 612875c6cab70a4c5deb0c46bd58930f99ead0c5 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 25 Oct 2018 22:35:16 +0000 Subject: [PATCH] Avoid STMT_ and DECL_ bitcodes overlapping. This doesn't appear to matter for deserialization purposes, because we always know what kind of entity (declaration or statement/expression) we're trying to load, but it makes the llvm-bcanalyzer output a lot less mysterious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345328 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Serialization/ASTBitCodes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/clang/Serialization/ASTBitCodes.h b/include/clang/Serialization/ASTBitCodes.h index 51a3999c1a..478217ccf5 100644 --- a/include/clang/Serialization/ASTBitCodes.h +++ b/include/clang/Serialization/ASTBitCodes.h @@ -1536,6 +1536,8 @@ namespace serialization { /// An OMPDeclareReductionDecl record. DECL_OMP_DECLARE_REDUCTION, + + DECL_LAST = DECL_OMP_DECLARE_REDUCTION }; /// Record codes for each kind of statement or expression. @@ -1548,7 +1550,7 @@ namespace serialization { enum StmtCode { /// A marker record that indicates that we are at the end /// of an expression. - STMT_STOP = 128, + STMT_STOP = DECL_LAST + 1, /// A NULL expression. STMT_NULL_PTR, -- 2.40.0