diff options
| author | Zachary Turner <zturner@google.com> | 2017-03-16 22:34:18 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-03-16 22:34:18 +0000 |
| commit | 1875334f32ab1ca305ddc96b41071ea8e1c034b1 (patch) | |
| tree | da060159e4d8465a9b78038c027c2c7dc451673c /llvm/lib/Support/Unix | |
| parent | dec1b92cccd7e9fbcf3284aa30489fdaa095f362 (diff) | |
| download | bcm5719-llvm-1875334f32ab1ca305ddc96b41071ea8e1c034b1.tar.gz bcm5719-llvm-1875334f32ab1ca305ddc96b41071ea8e1c034b1.zip | |
Fix linux build.
llvm-svn: 298007
Diffstat (limited to 'llvm/lib/Support/Unix')
| -rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 3 |
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()) { |

