From: Ivan Krasin Date: Thu, 6 Apr 2017 17:42:05 +0000 (+0000) Subject: Fix unused lambda capture. Follow up to r299653. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=926f659fc8c6f5f7e98ff8d316e1bb86022520de;p=clang Fix unused lambda capture. Follow up to r299653. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299671 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CloneDetection.cpp b/lib/Analysis/CloneDetection.cpp index 033329a485..5bbcbe4e57 100644 --- a/lib/Analysis/CloneDetection.cpp +++ b/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; });