summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Path.inc
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-16 22:34:18 +0000
committerZachary Turner <zturner@google.com>2017-03-16 22:34:18 +0000
commit1875334f32ab1ca305ddc96b41071ea8e1c034b1 (patch)
treeda060159e4d8465a9b78038c027c2c7dc451673c /llvm/lib/Support/Unix/Path.inc
parentdec1b92cccd7e9fbcf3284aa30489fdaa095f362 (diff)
downloadbcm5719-llvm-1875334f32ab1ca305ddc96b41071ea8e1c034b1.tar.gz
bcm5719-llvm-1875334f32ab1ca305ddc96b41071ea8e1c034b1.zip
Fix linux build.
llvm-svn: 298007
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r--llvm/lib/Support/Unix/Path.inc3
1 files changed, 2 insertions, 1 deletions
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<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()) {
OpenPOWER on IntegriCloud