Skip to content

Commit

Permalink
Fix msvc compiler error in r327498
Browse files Browse the repository at this point in the history
msvc reports an "illegal indirection" error here. Attempt to appease it
with a different initialization syntax.

llvm-svn: 327500
  • Loading branch information
labath committed Mar 14, 2018
1 parent 0bd4d8c commit 8ed6582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/AsmPrinter/DIE.cpp
Expand Up @@ -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()};
Expand Down

0 comments on commit 8ed6582

Please sign in to comment.