[lld] r268170 - Attempt to fix Windows buildbots.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 30 15:20:28 PDT 2016
Author: ruiu
Date: Sat Apr 30 17:20:27 2016
New Revision: 268170
URL: http://llvm.org/viewvc/llvm-project?rev=268170&view=rev
Log:
Attempt to fix Windows buildbots.
Modified:
lld/trunk/ELF/DriverUtils.cpp
Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=268170&r1=268169&r2=268170&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Sat Apr 30 17:20:27 2016
@@ -101,9 +101,9 @@ static std::string relative_to_root(Stri
// of the result.
SmallString<128> Res;
StringRef Root = path::root_name(Path);
- if (Path.endswith(":"))
+ if (Root.endswith(":"))
Res = Root.drop_back();
- else if (Path.startswith("//"))
+ else if (Root.startswith("//"))
Res = Root.substr(2);
path::append(Res, path::relative_path(Abs));
More information about the llvm-commits
mailing list