From 8c54c84ae71ce6e7783da011cc16535ffd3b7410 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 30 Apr 2015 14:03:12 +0000 Subject: [PATCH] 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 --- lib/MC/ELFObjectWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1