From bafa38cd94a28a1df44c9e0779d7e47ba40ba3e1 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 14 Mar 2018 11:31:17 +0000 Subject: [PATCH] Fix msvc compiler error in r327498 msvc reports an "illegal indirection" error here. Attempt to appease it with a different initialization syntax. llvm-svn: 327500 --- lib/CodeGen/AsmPrinter/DIE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index 8326215515d..56d85912c80 100644 --- a/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/lib/CodeGen/AsmPrinter/DIE.cpp @@ -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()};