[lld] r274729 - Fix endianness issue.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 01:33:20 PDT 2016


>template <class ELFT> void InputSectionBase<ELFT>::uncompress() {
>-  typedef typename std::conditional<ELFT::Is64Bits, Elf64_Chdr,
>-                                    Elf32_Chdr>::type Elf_Chdr;

So looks it could be just that. Remove of this typedef is enough generally to fix the issue.
New code looks better though.

George.


More information about the llvm-commits mailing list