mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-05 03:10:41 +00:00
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:
parent
7fc9422362
commit
8c54c84ae7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user