diff options
| author | Fangrui Song <maskray@google.com> | 2019-05-20 10:18:35 +0000 | 
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-05-20 10:18:35 +0000 | 
| commit | 68774edcd65a310aadbaaffa7a63a416eef7cede (patch) | |
| tree | 1f20666b8613450ddaa2a906b08a8584d78e95d7 /llvm/lib/DebugInfo/CodeView | |
| parent | f83cccf917c1c0db45bfaa6728793eb106dda8af (diff) | |
| download | bcm5719-llvm-68774edcd65a310aadbaaffa7a63a416eef7cede.tar.gz bcm5719-llvm-68774edcd65a310aadbaaffa7a63a416eef7cede.zip | |
Use llvm::sort. NFC
llvm-svn: 361134
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView')
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp index be8c32d5b29..9bc69abea10 100644 --- a/llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp +++ b/llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp @@ -47,10 +47,9 @@ Error DebugFrameDataSubsection::commit(BinaryStreamWriter &Writer) const {    }    std::vector<FrameData> SortedFrames(Frames.begin(), Frames.end()); -  std::sort(SortedFrames.begin(), SortedFrames.end(), -            [](const FrameData &LHS, const FrameData &RHS) { -              return LHS.RvaStart < RHS.RvaStart; -            }); +  llvm::sort(SortedFrames, [](const FrameData &LHS, const FrameData &RHS) { +    return LHS.RvaStart < RHS.RvaStart; +  });    if (auto EC = Writer.writeArray(makeArrayRef(SortedFrames)))      return EC;    return Error::success(); | 

