We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25a2d51 commit c5ecf5aCopy full SHA for c5ecf5a
llvm/lib/MC/ELFObjectWriter.cpp
@@ -843,7 +843,7 @@ bool ELFWriter::maybeWriteCompression(
843
uint32_t ChType, uint64_t Size,
844
SmallVectorImpl<uint8_t> &CompressedContents, Align Alignment) {
845
uint64_t HdrSize =
846
- is64Bit() ? sizeof(ELF::Elf32_Chdr) : sizeof(ELF::Elf64_Chdr);
+ is64Bit() ? sizeof(ELF::Elf64_Chdr) : sizeof(ELF::Elf32_Chdr);
847
if (Size <= HdrSize + CompressedContents.size())
848
return false;
849
// Platform specific header is followed by compressed data.
0 commit comments