Index: tools/clang/lib/Basic/FileManager.cpp
===================================================================
--- tools/clang/lib/Basic/FileManager.cpp	(revision 160036)
+++ tools/clang/lib/Basic/FileManager.cpp	(working copy)
@@ -112,7 +112,13 @@
 
   size_t size() const { return UniqueFiles.size(); }
 
-  void erase(const FileEntry *Entry) { UniqueFiles.erase(Entry->getName()); }
+  void erase(const FileEntry *Entry) {
+    std::string FullPath(GetFullPath(Entry->getName()));
+
+    // Lowercase string because Windows filesystem is case insensitive.
+    FullPath = StringRef(FullPath).lower();
+    UniqueFiles.erase(FullPath);
+  }
 };
 
 //===----------------------------------------------------------------------===//

Check Windows patch for clang.
Check Windows patch for clang.


git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@44995 27541ba8-7e3a-0410-8455-c3a389f83636
