[llvm] r207356 - Add the default constructor DwarfAccelTable::DataArray() to initialize (MCSymbol*)StrSym explicitly.

NAKAMURA Takumi geek4civic at gmail.com
Sun Apr 27 04:59:44 PDT 2014


Author: chapuni
Date: Sun Apr 27 06:59:44 2014
New Revision: 207356

URL: http://llvm.org/viewvc/llvm-project?rev=207356&view=rev
Log:
Add the default constructor DwarfAccelTable::DataArray() to initialize (MCSymbol*)StrSym explicitly.

It will fix crash in codegen on msvc x64.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.h

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.h?rev=207356&r1=207355&r2=207356&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.h Sun Apr 27 06:59:44 2014
@@ -183,6 +183,7 @@ private:
   struct DataArray {
     MCSymbol *StrSym;
     std::vector<HashDataContents *> Values;
+    DataArray() : StrSym(nullptr), Values() {}
   };
   friend struct HashData;
   struct HashData {





More information about the llvm-commits mailing list