]> granicus.if.org Git - clang/commitdiff
Try to appease the failing buildbot where I can't reproduce the problem
authorDouglas Gregor <dgregor@apple.com>
Thu, 17 Nov 2011 01:44:33 +0000 (01:44 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 17 Nov 2011 01:44:33 +0000 (01:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144879 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReader.cpp

index 0b2a884f82a40841340b17a0528fc961da1276fc..b9120ed227c225fdada3bd153268fccd6e0dae85 100644 (file)
@@ -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