[Lldb-commits] [lldb] r343164 - llvm::sort(C.begin(), C.end(), ...) -> llvm::sort(C, ...)
Fangrui Song via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 26 20:35:05 PDT 2018
Author: maskray
Date: Wed Sep 26 20:35:05 2018
New Revision: 343164
URL: http://llvm.org/viewvc/llvm-project?rev=343164&view=rev
Log:
llvm::sort(C.begin(), C.end(), ...) -> llvm::sort(C, ...)
The convenience wrapper in STLExtras is available since rL342102.
Modified:
lldb/trunk/source/Breakpoint/Breakpoint.cpp
Modified: lldb/trunk/source/Breakpoint/Breakpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/Breakpoint.cpp?rev=343164&r1=343163&r2=343164&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/Breakpoint.cpp (original)
+++ lldb/trunk/source/Breakpoint/Breakpoint.cpp Wed Sep 26 20:35:05 2018
@@ -785,8 +785,8 @@ void Breakpoint::ModuleReplaced(ModuleSP
// we go.
if (old_id_vec.size() == new_id_vec.size()) {
- llvm::sort(old_id_vec.begin(), old_id_vec.end());
- llvm::sort(new_id_vec.begin(), new_id_vec.end());
+ llvm::sort(old_id_vec);
+ llvm::sort(new_id_vec);
size_t num_elements = old_id_vec.size();
for (size_t idx = 0; idx < num_elements; idx++) {
BreakpointLocationSP old_loc_sp =
More information about the lldb-commits
mailing list