From: Zachary Turner Date: Thu, 16 Mar 2017 22:34:18 +0000 (+0000) Subject: Fix linux build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ff37746b3118d4a70dc071a211c3aaeb2dc7525;p=llvm Fix linux build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298007 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index c1ffd1eeb29..80bb1a42a13 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -486,7 +486,8 @@ static void expandTildeExpr(SmallVectorImpl &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()) {