Fix msvc compiler error in r327498
authorPavel Labath <labath@google.com>
Wed, 14 Mar 2018 11:31:17 +0000 (11:31 +0000)
committerPavel Labath <labath@google.com>
Wed, 14 Mar 2018 11:31:17 +0000 (11:31 +0000)
msvc reports an "illegal indirection" error here. Attempt to appease it
with a different initialization syntax.

llvm-svn: 327500

llvm/lib/CodeGen/AsmPrinter/DIE.cpp

index 8326215..56d8591 100644 (file)
@@ -425,7 +425,7 @@ void DIEInteger::EmitValue(const AsmPrinter *Asm, dwarf::Form Form) const {
 /// SizeOf - Determine size of integer value in bytes.
 ///
 unsigned DIEInteger::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const {
-  dwarf::FormParams Params({0, 0, dwarf::DWARF32});
+  dwarf::FormParams Params = {0, 0, dwarf::DWARF32};
   if (AP)
     Params = {AP->getDwarfVersion(), uint8_t(AP->getPointerSize()),
               AP->OutStreamer->getContext().getDwarfFormat()};