summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-10-25 22:35:16 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-10-25 22:35:16 +0000
commita0254cac4bb924d7f2e898e578156be1a246f1dd (patch)
tree6e252ac15566267dba843c29d4646789d706e46d
parentb7caa809e1029e6d4b5b1cb7a9624e6076d10bd8 (diff)
downloadbcm5719-llvm-a0254cac4bb924d7f2e898e578156be1a246f1dd.tar.gz
bcm5719-llvm-a0254cac4bb924d7f2e898e578156be1a246f1dd.zip
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. llvm-svn: 345328
-rw-r--r--clang/include/clang/Serialization/ASTBitCodes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/Serialization/ASTBitCodes.h b/clang/include/clang/Serialization/ASTBitCodes.h
index 51a3999c1a8..478217ccf58 100644
--- a/clang/include/clang/Serialization/ASTBitCodes.h
+++ b/clang/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,
OpenPOWER on IntegriCloud