LLVM_ON_WIN32 case: use the proper key in the UniqueFiles map.

llvm-svn: 160041
This commit is contained in:
Axel Naumann 2012-07-11 09:41:34 +00:00
parent 9488100d46
commit 23c1676dee
1 changed files with 7 additions and 1 deletions

View File

@ -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);
}
};
//===----------------------------------------------------------------------===//