[Lldb-commits] [lldb] r360285 - [Reproducers] Fix unitialized pointer

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed May 8 14:07:16 PDT 2019


Author: jdevlieghere
Date: Wed May  8 14:07:15 2019
New Revision: 360285

URL: http://llvm.org/viewvc/llvm-project?rev=360285&view=rev
Log:
[Reproducers] Fix unitialized pointer

The FileCollector pointer in the FileSystem class wasn't initialized to
nullptr during replay.

Modified:
    lldb/trunk/include/lldb/Host/FileSystem.h

Modified: lldb/trunk/include/lldb/Host/FileSystem.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/FileSystem.h?rev=360285&r1=360284&r2=360285&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/FileSystem.h (original)
+++ lldb/trunk/include/lldb/Host/FileSystem.h Wed May  8 14:07:15 2019
@@ -39,7 +39,7 @@ public:
         m_mapped(false) {}
   FileSystem(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> fs,
              bool mapped = false)
-      : m_fs(fs), m_mapped(mapped) {}
+      : m_fs(fs), m_collector(nullptr), m_mapped(mapped) {}
 
   FileSystem(const FileSystem &fs) = delete;
   FileSystem &operator=(const FileSystem &fs) = delete;




More information about the lldb-commits mailing list