aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-17 10:39:45 -0800
committerKazu Hirata <kazu@google.com>2021-01-17 10:39:45 -0800
commit352fcfc69788093b50971a9f5540a61fa0887ce1 (patch)
tree9775f7738de13ae8fdb779e74c51d8f2734cd861 /llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp
parent7e9e6ac526ebd90fe8ec0b8d2bb6edd3516ab908 (diff)
downloadllvm-352fcfc69788093b50971a9f5540a61fa0887ce1.zip
llvm-352fcfc69788093b50971a9f5540a61fa0887ce1.tar.gz
llvm-352fcfc69788093b50971a9f5540a61fa0887ce1.tar.bz2
[llvm] Use llvm::sort (NFC)
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp')
-rw-r--r--llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp
index be8c32d..9bc69ab 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();