mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 07:11:32 +00:00
Use llvm::sort. NFC
llvm-svn: 361134
This commit is contained in:
1 parent
f83cccf917
commit
68774edcd6
4 files changed
+10
-14
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user