[lld] 150a9ad - [LLD] [COFF] Fix use of uninitialized memory since SVN r375390

Martin Storsjo via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 02:34:23 PDT 2019


Author: Martin Storsjo
Date: 2019-10-21T09:35:34Z
New Revision: 150a9ad3ffcc142cfcc933379063bec6cfca0783

URL: https://github.com/llvm/llvm-project/commit/150a9ad3ffcc142cfcc933379063bec6cfca0783
DIFF: https://github.com/llvm/llvm-project/commit/150a9ad3ffcc142cfcc933379063bec6cfca0783.diff

LOG: [LLD] [COFF] Fix use of uninitialized memory since SVN r375390

llvm-svn: 375400

Added: 
    

Modified: 
    lld/COFF/InputFiles.h

Removed: 
    


################################################################################
diff  --git a/lld/COFF/InputFiles.h b/lld/COFF/InputFiles.h
index 1004432c683f..672461cd84ba 100644
--- a/lld/COFF/InputFiles.h
+++ b/lld/COFF/InputFiles.h
@@ -294,7 +294,7 @@ class ObjFile : public InputFile {
   // symbols in the real symbol table) are filled with null pointers.
   std::vector<Symbol *> symbols;
 
-  DWARFCache *dwarf;
+  DWARFCache *dwarf = nullptr;
 };
 
 // This type represents import library members that contain DLL names


        


More information about the llvm-commits mailing list