From d8e91e46262bc44006913e6796843909f1ac7bcd Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:01:25 +0000 Subject: Vendor import of llvm trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/llvm/trunk@351319 --- lib/Support/JSON.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Support/JSON.cpp') diff --git a/lib/Support/JSON.cpp b/lib/Support/JSON.cpp index a5dae7a7c2e0..d468013fb94a 100644 --- a/lib/Support/JSON.cpp +++ b/lib/Support/JSON.cpp @@ -517,7 +517,7 @@ static std::vector sortedElements(const Object &O) { std::vector Elements; for (const auto &E : O) Elements.push_back(&E); - llvm::sort(Elements.begin(), Elements.end(), + llvm::sort(Elements, [](const Object::value_type *L, const Object::value_type *R) { return L->first < R->first; }); -- cgit v1.3