forked from OSchip/llvm-project
LLVM_ON_WIN32 case: use the proper key in the UniqueFiles map.
llvm-svn: 160041
This commit is contained in:
parent
9488100d46
commit
23c1676dee
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue