[llvm] r298007 - Fix linux build.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 16 15:34:18 PDT 2017
Author: zturner
Date: Thu Mar 16 17:34:18 2017
New Revision: 298007
URL: http://llvm.org/viewvc/llvm-project?rev=298007&view=rev
Log:
Fix linux build.
Modified:
llvm/trunk/lib/Support/Unix/Path.inc
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=298007&r1=298006&r2=298007&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Thu Mar 16 17:34:18 2017
@@ -486,7 +486,8 @@ static void expandTildeExpr(SmallVectorI
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()) {
More information about the llvm-commits
mailing list