diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-11-17 01:44:33 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-11-17 01:44:33 +0000 |
commit | 35f9ae6dd221bd403299a895e97aaaf63507287a (patch) | |
tree | 2d126e30fa204bb2d29de7797881dc4dd06bd3df /lib/Serialization/ASTReader.cpp | |
parent | 2821c7f8870629b56b9c41e1c50c7a091edd544d (diff) |
Try to appease the failing buildbot where I can't reproduce the problem
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTReader.cpp')
-rw-r--r-- | lib/Serialization/ASTReader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index 0b2a884f82..b9120ed227 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/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 |