]> granicus.if.org Git - clang/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345328 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Serialization/ASTBitCodes.h

index 51a3999c1a8571dd9531033b98744cf31e0cf69b..478217ccf5822a33074dba7811b3c0db6a73205b 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,