diff options
| author | Martin Storsjo <martin@martin.st> | 2018-11-15 08:20:18 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2018-11-15 08:20:18 +0000 |
| commit | 0db45d954bef0199d1021112282d8b91dd2f03a0 (patch) | |
| tree | d393b443b4e128a807e035133321b76112f1a648 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 0997403a22ff9d222eb09ff3cd6ca2d463c70acf (diff) | |
[ELF] Fix compilation with GCC 5
Remove the default initializer for TrapInstr; all subclasses overwrite
the defaults in their constructors anyway.
This fixes compilation errors like these, with GCC 5.4 on Ubuntu 16.04,
present since SVN r346893:
In file included from ../tools/lld/ELF/Arch/AArch64.cpp:12:0:
../tools/lld/ELF/Target.h:125:49: error: array must be initialized with a brace-enclosed initializer
std::array<uint8_t, 4> TrapInstr = {0, 0, 0, 0};
^
../tools/lld/ELF/Target.h:125:49: error: too many initializers for ‘std::array<unsigned char, 4ul>’
Differential Revision: https://reviews.llvm.org/D54569
llvm-svn: 346934
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
