[Path] Fix bug in make_absolute logic
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 6 Aug 2019 15:46:45 +0000 (15:46 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 6 Aug 2019 15:46:45 +0000 (15:46 +0000)
commitcb6f2646fd44c5274312c8fa782c4f339dfadad7
treee3b80d3a426d7e65127df170b4c94f093ec812db
parent4b03364d72a5f4e372e631178bd32e0d4f531241
[Path] Fix bug in make_absolute logic

This fixes a bug for making path with a //net style root absolute. I
discovered the bug while writing a test case for the VFS, which uses
these paths because they're both legal absolute paths on Windows and
Unix.

Differential revision: https://reviews.llvm.org/D65675

llvm-svn: 368053
llvm/lib/Support/Path.cpp
llvm/unittests/Support/Path.cpp