summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-03-14 11:31:17 +0000
committerPavel Labath <labath@google.com>2018-03-14 11:31:17 +0000
commit8ed6582bb06047db76934efe8a9314976e8fd843 (patch)
tree9cdd942f6c736aee451b4b102fa13143d72f6e8e /llvm/lib/CodeGen/AsmPrinter/DIE.cpp
parent0bd4d8c901c95d8361580086b1eed43f88f755cd (diff)
downloadbcm5719-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.cpp2
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()};
OpenPOWER on IntegriCloud