[Lldb-commits] [PATCH] D142709: [lldb][Target] GetScratchTypeSystems: sort TypeSystems with strict weak ordering

Michael Buch via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 27 05:22:41 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG78fee46d8d8e: [lldb][Target] GetScratchTypeSystems: sort TypeSystems with strict weak ordering (authored by Michael137).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142709/new/

https://reviews.llvm.org/D142709

Files:
  lldb/source/Target/Target.cpp


Index: lldb/source/Target/Target.cpp
===================================================================
--- lldb/source/Target/Target.cpp
+++ lldb/source/Target/Target.cpp
@@ -2385,10 +2385,8 @@
       if (auto ts = *type_system_or_err)
         scratch_type_systems.push_back(ts);
   }
-  std::sort(scratch_type_systems.begin(), scratch_type_systems.end(),
-            [](lldb::TypeSystemSP a, lldb::TypeSystemSP b) {
-              return a.get() <= b.get();
-            });
+
+  std::sort(scratch_type_systems.begin(), scratch_type_systems.end());
   scratch_type_systems.erase(
       std::unique(scratch_type_systems.begin(), scratch_type_systems.end()),
       scratch_type_systems.end());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142709.492713.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230127/f0fd3d40/attachment.bin>


More information about the lldb-commits mailing list