[PATCH] D54207: [ELF] Make TrapInstr and Filler byte arrays. NFC.

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 14 23:21:01 PST 2018


mstorsjo added a comment.

This broke compilation with GCC 5.3 on Ubuntu 16.04, with the following error:

  In file included from ../tools/lld/ELF/Thunks.cpp:30: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>’  


Repository:
  rL LLVM

https://reviews.llvm.org/D54207





More information about the llvm-commits mailing list