summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterStmt.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-10-28 09:29:32 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-10-28 09:29:32 +0000
commitd9f526fc2e879c04d91e63f30bdd0c7eed9535d6 (patch)
tree8c37a8607bf64fa88e9fd33b4118fe0b510eb60c /clang/lib/Serialization/ASTWriterStmt.cpp
parent9de9160d553240d16b1825827d833021ada66598 (diff)
downloadbcm5719-llvm-d9f526fc2e879c04d91e63f30bdd0c7eed9535d6.tar.gz
bcm5719-llvm-d9f526fc2e879c04d91e63f30bdd0c7eed9535d6.zip
Switch case IDs conflict between chained PCHs; since there is no need to be global, make them local to a decl.
llvm-svn: 117540
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriterStmt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp
index 33b70e98c06..fc8e9e0e595 100644
--- a/clang/lib/Serialization/ASTWriterStmt.cpp
+++ b/clang/lib/Serialization/ASTWriterStmt.cpp
@@ -1311,6 +1311,10 @@ unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) {
return SwitchCaseIDs[S];
}
+void ASTWriter::ClearSwitchCaseIDs() {
+ SwitchCaseIDs.clear();
+}
+
/// \brief Retrieve the ID for the given label statement, which may
/// or may not have been emitted yet.
unsigned ASTWriter::GetLabelID(LabelStmt *S) {
OpenPOWER on IntegriCloud