1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Revert "Change Path::filename_pos() to skip the drive letter."

This reverts commit 228874.  For some reason users reported
seeing Clang taking up 25+GB of memory and bringing down
machines with this change.  Reverting until we figure it out.

llvm-svn: 228890
This commit is contained in:
Zachary Turner 2015-02-12 00:05:49 +00:00
parent ee900dc11e
commit f9549cf3ad

View File

@ -98,11 +98,8 @@ namespace {
size_t pos = str.find_last_of(separators, str.size() - 1);
#ifdef LLVM_ON_WIN32
if (pos == StringRef::npos) {
// Skip the drive letter, if one exists.
if (str.size() >= 2 && str[1] == ':')
pos = 2;
}
if (pos == StringRef::npos)
pos = str.find_last_of(':', str.size() - 2);
#endif
if (pos == StringRef::npos ||