From 1875334f32ab1ca305ddc96b41071ea8e1c034b1 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 16 Mar 2017 22:34:18 +0000 Subject: Fix linux build. llvm-svn: 298007 --- llvm/lib/Support/Unix/Path.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Support/Unix') diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index c1ffd1eeb29..80bb1a42a13 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/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()) { -- cgit v1.2.3