aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 709d09f..420c84b 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -2758,11 +2758,10 @@ Status ProcessGDBRemote::WriteObjectFile(
Status error;
// Sort the entries by address because some writes, like those to flash
// memory, must happen in order of increasing address.
- std::stable_sort(
- std::begin(entries), std::end(entries),
- [](const ObjectFile::LoadableData a, const ObjectFile::LoadableData b) {
- return a.Dest < b.Dest;
- });
+ llvm::stable_sort(entries, [](const ObjectFile::LoadableData a,
+ const ObjectFile::LoadableData b) {
+ return a.Dest < b.Dest;
+ });
m_allow_flash_writes = true;
error = Process::WriteObjectFile(entries);
if (error.Success())