From 34461e554ac359cee140434a01facefd25f720f1 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 15 Jan 2013 22:00:16 +0000 Subject: [Object][ELF] Fix -Wenum-compare. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172556 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ELF.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 285c047..c47b9cd 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -1962,9 +1962,11 @@ void ELFObjectFile::VerifyStrTab(const Elf_Shdr *sh) const { template ELFObjectFile::ELFObjectFile(MemoryBuffer *Object, error_code &ec) - : ObjectFile(getELFType(ELFT::TargetEndianness == support::little, - ELFT::Is64Bits), - Object, ec) + : ObjectFile(getELFType( + static_cast(ELFT::TargetEndianness) == support::little, + ELFT::Is64Bits), + Object, + ec) , isDyldELFObject(false) , SectionHeaderTable(0) , dot_shstrtab_sec(0) -- cgit v1.1