From: Aaron Ballman Date: Thu, 30 Apr 2015 14:03:12 +0000 (+0000) Subject: Silencing an "enumeral and non-enumeral type in conditional expression" warning;... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8c54c84ae71ce6e7783da011cc16535ffd3b7410;p=oota-llvm.git 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 --- diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 4d2212302fe..ae57f9521e0 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -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);