[Lldb-commits] [lldb] 05cd79d - [lldb] Fix some accidental IntervalMap copies

Benjamin Kramer via lldb-commits lldb-commits at lists.llvm.org
Sat Feb 19 11:56:12 PST 2022


Author: Benjamin Kramer
Date: 2022-02-19T20:56:03+01:00
New Revision: 05cd79d59900ac57a94a0699594163689606b336

URL: https://github.com/llvm/llvm-project/commit/05cd79d59900ac57a94a0699594163689606b336
DIFF: https://github.com/llvm/llvm-project/commit/05cd79d59900ac57a94a0699594163689606b336.diff

LOG: [lldb] Fix some accidental IntervalMap copies

I made that type non-copyable in some cases in dc4f9f0368cd

Added: 
    

Modified: 
    lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index a1ff6adea1202..f9929aed06ecf 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -1679,8 +1679,8 @@ class VMAddressProvider {
   ObjectFile::Type ObjectType;
   addr_t NextVMAddress = 0;
   VMMap::Allocator Alloc;
-  VMMap Segments = VMMap(Alloc);
-  VMMap Sections = VMMap(Alloc);
+  VMMap Segments{Alloc};
+  VMMap Sections{Alloc};
   lldb_private::Log *Log = GetLog(LLDBLog::Modules);
   size_t SegmentCount = 0;
   std::string SegmentName;


        


More information about the lldb-commits mailing list