浏览代码

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

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@375400 91177308-0d34-0410-b5e6-96231b3b80d8
Martin Storsjo 5 年之前
父节点
当前提交
64b024a57c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      COFF/InputFiles.h

+ 1 - 1
COFF/InputFiles.h

@@ -294,7 +294,7 @@ private:
   // symbols in the real symbol table) are filled with null pointers.
   // symbols in the real symbol table) are filled with null pointers.
   std::vector<Symbol *> symbols;
   std::vector<Symbol *> symbols;
 
 
-  DWARFCache *dwarf;
+  DWARFCache *dwarf = nullptr;
 };
 };
 
 
 // This type represents import library members that contain DLL names
 // This type represents import library members that contain DLL names