[cfe-commits] r144879 - /cfe/trunk/lib/Serialization/ASTReader.cpp

Douglas Gregor dgregor at apple.com
Wed Nov 16 17:44:33 PST 2011


Author: dgregor
Date: Wed Nov 16 19:44:33 2011
New Revision: 144879

URL: http://llvm.org/viewvc/llvm-project?rev=144879&view=rev
Log:
Try to appease the failing buildbot where I can't reproduce the problem

Modified:
    cfe/trunk/lib/Serialization/ASTReader.cpp

Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=144879&r1=144878&r2=144879&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Wed Nov 16 19:44:33 2011
@@ -1147,8 +1147,10 @@
                                                              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





More information about the cfe-commits mailing list