diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-15 22:00:16 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-15 22:00:16 +0000 |
commit | 34461e554ac359cee140434a01facefd25f720f1 (patch) | |
tree | 63022771b1faf3d3c72a5d0c3f606539a018aa05 /include | |
parent | a1444219b271cab6fbfe340c1328b0ab10d8f7b6 (diff) | |
download | external_llvm-34461e554ac359cee140434a01facefd25f720f1.zip external_llvm-34461e554ac359cee140434a01facefd25f720f1.tar.gz external_llvm-34461e554ac359cee140434a01facefd25f720f1.tar.bz2 |
[Object][ELF] Fix -Wenum-compare.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELF.h | 8 |
1 files changed, 5 insertions, 3 deletions
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<ELFT>::VerifyStrTab(const Elf_Shdr *sh) const { template<class ELFT> ELFObjectFile<ELFT>::ELFObjectFile(MemoryBuffer *Object, error_code &ec) - : ObjectFile(getELFType(ELFT::TargetEndianness == support::little, - ELFT::Is64Bits), - Object, ec) + : ObjectFile(getELFType( + static_cast<endianness>(ELFT::TargetEndianness) == support::little, + ELFT::Is64Bits), + Object, + ec) , isDyldELFObject(false) , SectionHeaderTable(0) , dot_shstrtab_sec(0) |