From 1e1acbc95b65046c11bd3b13f503de46213fa198 Mon Sep 17 00:00:00 2001 From: Ivan Krasin Date: Thu, 6 Apr 2017 17:42:05 +0000 Subject: [PATCH] Fix unused lambda capture. Follow up to r299653. llvm-svn: 299671 --- clang/lib/Analysis/CloneDetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Analysis/CloneDetection.cpp b/clang/lib/Analysis/CloneDetection.cpp index 033329a485dd..5bbcbe4e5722 100644 --- a/clang/lib/Analysis/CloneDetection.cpp +++ b/clang/lib/Analysis/CloneDetection.cpp @@ -492,7 +492,7 @@ void RecursiveCloneTypeIIConstraint::constrain( // Sort hash_codes in StmtsByHash. std::stable_sort(StmtsByHash.begin(), StmtsByHash.end(), - [this](std::pair LHS, + [](std::pair LHS, std::pair RHS) { return LHS.first < RHS.first; });