[llvm] r327500 - Fix msvc compiler error in r327498

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 14 04:31:18 PDT 2018


Author: labath
Date: Wed Mar 14 04:31:17 2018
New Revision: 327500

URL: http://llvm.org/viewvc/llvm-project?rev=327500&view=rev
Log:
Fix msvc compiler error in r327498

msvc reports an "illegal indirection" error here. Attempt to appease it
with a different initialization syntax.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp?rev=327500&r1=327499&r2=327500&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp Wed Mar 14 04:31:17 2018
@@ -425,7 +425,7 @@ void DIEInteger::EmitValue(const AsmPrin
 /// 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()};




More information about the llvm-commits mailing list