Avoid STMT_ and DECL_ bitcodes overlapping.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 25 Oct 2018 22:35:16 +0000 (22:35 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 25 Oct 2018 22:35:16 +0000 (22:35 +0000)
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.

llvm-svn: 345328

clang/include/clang/Serialization/ASTBitCodes.h

index 51a3999..478217c 100644 (file)
@@ -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,