aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Object
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-01-15 22:00:16 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-01-15 22:00:16 +0000
commit34461e554ac359cee140434a01facefd25f720f1 (patch)
tree63022771b1faf3d3c72a5d0c3f606539a018aa05 /include/llvm/Object
parenta1444219b271cab6fbfe340c1328b0ab10d8f7b6 (diff)
[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/llvm/Object')
-rw-r--r--include/llvm/Object/ELF.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h
index 285c047cb4..c47b9cdf32 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)