Attempt to fix Windows buildbots.

llvm-svn: 268170
This commit is contained in:
Rui Ueyama 2016-04-30 22:20:27 +00:00
parent aa00e96a84
commit 38aa57d966
1 changed files with 2 additions and 2 deletions

View File

@ -101,9 +101,9 @@ static std::string relative_to_root(StringRef Path) {
// 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));