diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-03 01:58:45 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-03 01:58:45 +0000 |
| commit | bebae7c4647ed671e37ca2edf9eeb160c181a8ac (patch) | |
| tree | d2d8fea021731e07c1e362d9f90d490e9f1368a7 /lib/Serialization/ASTReaderDecl.cpp | |
| parent | d64c26f6676eef69d1713f353ca8a3c2fe963f17 (diff) | |
| download | clang-bebae7c4647ed671e37ca2edf9eeb160c181a8ac.tar.gz clang-bebae7c4647ed671e37ca2edf9eeb160c181a8ac.tar.bz2 clang-bebae7c4647ed671e37ca2edf9eeb160c181a8ac.tar.xz | |
[PCH] Fix serialization of an ImportDecl.
ImportDecl's module ID was not written out and the reader accepted as module ID
the serialized:
Record.push_back(!IdentifierLocs.empty());
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTReaderDecl.cpp')
| -rw-r--r-- | lib/Serialization/ASTReaderDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Serialization/ASTReaderDecl.cpp b/lib/Serialization/ASTReaderDecl.cpp index 4f2da6bc51..42ea7946e2 100644 --- a/lib/Serialization/ASTReaderDecl.cpp +++ b/lib/Serialization/ASTReaderDecl.cpp @@ -1246,6 +1246,7 @@ void ASTDeclReader::VisitImportDecl(ImportDecl *D) { SourceLocation *StoredLocs = reinterpret_cast<SourceLocation *>(D + 1); for (unsigned I = 0, N = Record.back(); I != N; ++I) StoredLocs[I] = ReadSourceLocation(Record, Idx); + ++Idx; // The number of stored source locations. } void ASTDeclReader::VisitAccessSpecDecl(AccessSpecDecl *D) { |
