Author: rsmith Date: Thu Oct 25 15:35:16 2018 New Revision: 345328 URL: http://llvm.org/viewvc/llvm-project?rev=345328&view=rev Log: 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. Modified: cfe/trunk/include/clang/Serialization/ASTBitCodes.h Modified: cfe/trunk/include/clang/Serialization/ASTBitCodes.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Serialization/ASTBitCodes.h?rev=345328&r1=345327&r2=345328&view=diff ============================================================================== --- cfe/trunk/include/clang/Serialization/ASTBitCodes.h (original) +++ cfe/trunk/include/clang/Serialization/ASTBitCodes.h Thu Oct 25 15:35:16 2018 @@ -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, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits