[Lldb-commits] [lldb] 3f36421 - Fix use of std::unique / erase. This fixes a bot error after D136650.

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 16 17:36:02 PST 2022


Author: Adrian Prantl
Date: 2022-11-16T17:35:51-08:00
New Revision: 3f36421aa74031fb554c780dba66c1c1a437d953

URL: https://github.com/llvm/llvm-project/commit/3f36421aa74031fb554c780dba66c1c1a437d953
DIFF: https://github.com/llvm/llvm-project/commit/3f36421aa74031fb554c780dba66c1c1a437d953.diff

LOG: Fix use of std::unique / erase. This fixes a bot error after D136650.

Added: 
    

Modified: 
    lldb/source/Target/Target.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 9e252c4dbb04..22071b76a805 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -2361,7 +2361,8 @@ Target::GetScratchTypeSystems(bool create_on_demand) {
               return a.get() <= b.get();
             });
   scratch_type_systems.erase(
-      std::unique(scratch_type_systems.begin(), scratch_type_systems.end()));
+      std::unique(scratch_type_systems.begin(), scratch_type_systems.end()),
+      scratch_type_systems.end());
   return scratch_type_systems;
 }
 


        


More information about the lldb-commits mailing list