Fix linux build.

llvm-svn: 298007
This commit is contained in:
Zachary Turner 2017-03-16 22:34:18 +00:00
parent 333f09d827
commit 0e80c85b5e

View File

@ -486,7 +486,8 @@ static void expandTildeExpr(SmallVectorImpl<char> &Path) {
return;
PathStr = PathStr.drop_front();
StringRef Expr = PathStr.take_until(path::is_separator);
StringRef Expr =
PathStr.take_until([](char c) { return path::is_separator(c); });
StringRef Remainder = PathStr.substr(Expr.size() + 1);
SmallString<128> Storage;
if (Expr.empty()) {