summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-17 01:44:33 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-17 01:44:33 +0000
commit667971778c11243f98ebc77d75c98a9ee0e92aa7 (patch)
tree6586db706d667c0fb8ec53cb9e6e187c502980e1 /clang/lib/Serialization
parent0e439c9b7cf8089fdb4a783e3baa844ce84f8b70 (diff)
downloadbcm5719-llvm-667971778c11243f98ebc77d75c98a9ee0e92aa7.tar.gz
bcm5719-llvm-667971778c11243f98ebc77d75c98a9ee0e92aa7.zip
Try to appease the failing buildbot where I can't reproduce the problem
llvm-svn: 144879
Diffstat (limited to 'clang/lib/Serialization')
-rw-r--r--clang/lib/Serialization/ASTReader.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 0b2a884f82a..b9120ed227c 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -1147,8 +1147,10 @@ ASTReader::ASTReadResult ASTReader::ReadSLocEntryRecord(int ID) {
NumFileDecls));
}
- if (OverriddenBuffer &&
- !SourceMgr.getOrCreateContentCache(File)->BufferOverridden) {
+ const SrcMgr::ContentCache *ContentCache
+ = SourceMgr.getOrCreateContentCache(File);
+ if (OverriddenBuffer && !ContentCache->BufferOverridden &&
+ ContentCache->ContentsEntry == ContentCache->OrigEntry) {
unsigned Code = SLocEntryCursor.ReadCode();
Record.clear();
unsigned RecCode
OpenPOWER on IntegriCloud