[Lldb-commits] [lldb] r187822 - Initialize m_leak member variable.

Michael Sartain mikesart at valvesoftware.com
Tue Aug 6 15:21:08 PDT 2013


Author: mikesart
Date: Tue Aug  6 17:21:08 2013
New Revision: 187822

URL: http://llvm.org/viewvc/llvm-project?rev=187822&view=rev
Log:
Initialize m_leak member variable.


Modified:
    lldb/trunk/source/Expression/IRMemoryMap.cpp

Modified: lldb/trunk/source/Expression/IRMemoryMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRMemoryMap.cpp?rev=187822&r1=187821&r2=187822&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRMemoryMap.cpp (original)
+++ lldb/trunk/source/Expression/IRMemoryMap.cpp Tue Aug  6 17:21:08 2013
@@ -205,15 +205,15 @@ IRMemoryMap::Allocation::Allocation (lld
                                      size_t size,
                                      uint32_t permissions,
                                      uint8_t alignment,
-                                     AllocationPolicy policy)
+                                     AllocationPolicy policy) :
+    m_process_alloc (process_alloc),
+    m_process_start (process_start),
+    m_size (size),
+    m_permissions (permissions),
+    m_alignment (alignment),
+    m_policy (policy),
+    m_leak (false)
 {
-    m_process_alloc = process_alloc;
-    m_process_start = process_start;
-    m_size = size;
-    m_permissions = permissions;
-    m_alignment = alignment;
-    m_policy = policy;
-    
     switch (policy)
     {
         default:





More information about the lldb-commits mailing list