Silencing an "enumeral and non-enumeral type in conditional expression" warning; NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman 2015-04-30 14:03:12 +00:00
parent 7fc9422362
commit 8c54c84ae7

View File

@ -1586,7 +1586,7 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm,
writeSectionHeader(Sections, Asm, Layout, SectionIndexMap, SectionOffsets);
uint16_t NumSections = (Sections.size() + 1 >= ELF::SHN_LORESERVE)
? ELF::SHN_UNDEF
? (uint16_t)ELF::SHN_UNDEF
: Sections.size() + 1;
if (sys::IsLittleEndianHost != IsLittleEndian)
sys::swapByteOrder(NumSections);