]> granicus.if.org Git - llvm/commit
[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)
commit21adcf192d24a097c62938b9ec2d9c63ae321b68
tree16c79fcff16d41b1884582b58d03379c0faf9aa1
parent1277fa00ed8fa8c2b08608dc48a7ae1b10065eec
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368053 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Path.cpp
unittests/Support/Path.cpp