Skip to content
Snippets Groups Projects
Commit 23c1676d authored by Axel Naumann's avatar Axel Naumann
Browse files

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

llvm-svn: 160041
parent 9488100d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
};
//===----------------------------------------------------------------------===//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment