diff options
author | Axel Naumann <Axel.Naumann@cern.ch> | 2012-07-11 09:41:34 +0000 |
---|---|---|
committer | Axel Naumann <Axel.Naumann@cern.ch> | 2012-07-11 09:41:34 +0000 |
commit | be779598aa70a71c56e5d576947ade53e249c602 (patch) | |
tree | 86d54023e7ced4bfcf1310d221d88635c46d7660 /lib/Basic/FileManager.cpp | |
parent | f2f15b3bc6820469024db170c87ffe885ec53cf9 (diff) |
LLVM_ON_WIN32 case: use the proper key in the UniqueFiles map.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileManager.cpp')
-rw-r--r-- | lib/Basic/FileManager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp index 9804105e67..ddf8934b62 100644 --- a/lib/Basic/FileManager.cpp +++ b/lib/Basic/FileManager.cpp @@ -112,7 +112,13 @@ public: 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); + } }; //===----------------------------------------------------------------------===// |