Index: lib/Support/Path.cpp =================================================================== --- lib/Support/Path.cpp +++ lib/Support/Path.cpp @@ -384,7 +384,7 @@ const_iterator b = begin(path), e = end(path); if (b != e) { - bool has_net = b->size() > 2 && is_separator((*b)[0]) && (*b)[1] == (*b)[0]; + bool has_sep = is_separator((*b)[0]); bool has_drive = #ifdef LLVM_ON_WIN32 b->endswith(":"); @@ -392,7 +392,7 @@ false; #endif - if (has_net || has_drive) { + if (has_sep || has_drive) { // just {C:,//net}, return the first component. return *b; }