diff options
author | Pavel Labath <labath@google.com> | 2018-03-14 11:31:17 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-03-14 11:31:17 +0000 |
commit | 8ed6582bb06047db76934efe8a9314976e8fd843 (patch) | |
tree | 9cdd942f6c736aee451b4b102fa13143d72f6e8e /llvm/lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | 0bd4d8c901c95d8361580086b1eed43f88f755cd (diff) | |
download | bcm5719-llvm-8ed6582bb06047db76934efe8a9314976e8fd843.tar.gz bcm5719-llvm-8ed6582bb06047db76934efe8a9314976e8fd843.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp index 8326215515d..56d85912c80 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/llvm/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()}; |