commit | e09a275444576deb2c8d9e2255554242f65d7c00 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Oct 28 09:29:32 2010 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Oct 28 09:29:32 2010 +0000 |
tree | 7c68aea119d866765f2da4d5bafa2f8a4b0dd899 | |
parent | 95c225de9fa3d79f70ef5008c0279580a7d9dcad [diff] [blame] |
Switch case IDs conflict between chained PCHs; since there is no need to be global, make them local to a decl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117540 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index 3c6dd9b..37c7765 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/lib/Serialization/ASTWriterDecl.cpp
@@ -1128,6 +1128,9 @@ } void ASTWriter::WriteDecl(ASTContext &Context, Decl *D) { + // Switch case IDs are per Decl. + ClearSwitchCaseIDs(); + RecordData Record; ASTDeclWriter W(*this, Context, Record);