[dsymutil] Fix missing member initializer.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 18 Dec 2014 00:45:32 +0000 (00:45 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 18 Dec 2014 00:45:32 +0000 (00:45 +0000)
This bug was found by the MSan bootstrap bot:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/5330/steps/check-llvm%20msan/logs/stdio

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224481 91177308-0d34-0410-b5e6-96231b3b80d8

tools/dsymutil/MachODebugMapParser.cpp

index 6fabe00ac919bd71f182ac6fcf907039ccb00e69..152cbcc938beeff4c22fc9bd603826afba3aa253 100644 (file)
@@ -21,7 +21,8 @@ using namespace llvm::object;
 class MachODebugMapParser {
 public:
   MachODebugMapParser(StringRef BinaryPath, StringRef PathPrefix = "")
 class MachODebugMapParser {
 public:
   MachODebugMapParser(StringRef BinaryPath, StringRef PathPrefix = "")
-      : BinaryPath(BinaryPath), PathPrefix(PathPrefix) {}
+      : BinaryPath(BinaryPath), PathPrefix(PathPrefix),
+        CurrentDebugMapObject(nullptr) {}
 
   /// \brief Parses and returns the DebugMap of the input binary.
   /// \returns an error in case the provided BinaryPath doesn't exist
 
   /// \brief Parses and returns the DebugMap of the input binary.
   /// \returns an error in case the provided BinaryPath doesn't exist