diff options
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/lib/FileCheck/FileCheck.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/FileCheck/FileCheck.cpp b/llvm/lib/FileCheck/FileCheck.cpp index 2a213fc..3169afa 100644 --- a/llvm/lib/FileCheck/FileCheck.cpp +++ b/llvm/lib/FileCheck/FileCheck.cpp @@ -1386,12 +1386,11 @@ void Pattern::printVariableDefs(const SourceMgr &SM, } // Sort variable captures by the order in which they matched the input. // Ranges shouldn't be overlapping, so we can just compare the start. - std::sort(VarCaptures.begin(), VarCaptures.end(), - [](const VarCapture &A, const VarCapture &B) { - assert(A.Range.Start != B.Range.Start && - "unexpected overlapping variable captures"); - return A.Range.Start.getPointer() < B.Range.Start.getPointer(); - }); + llvm::sort(VarCaptures, [](const VarCapture &A, const VarCapture &B) { + assert(A.Range.Start != B.Range.Start && + "unexpected overlapping variable captures"); + return A.Range.Start.getPointer() < B.Range.Start.getPointer(); + }); // Create notes for the sorted captures. for (const VarCapture &VC : VarCaptures) { SmallString<256> Msg; |