[llvm-commits] [llvm] r172556 - /llvm/trunk/include/llvm/Object/ELF.h
Michael J. Spencer
bigcheesegs at gmail.com
Tue Jan 15 14:00:17 PST 2013
Author: mspencer
Date: Tue Jan 15 16:00:16 2013
New Revision: 172556
URL: http://llvm.org/viewvc/llvm-project?rev=172556&view=rev
Log:
[Object][ELF] Fix -Wenum-compare.
Modified:
llvm/trunk/include/llvm/Object/ELF.h
Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=172556&r1=172555&r2=172556&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Tue Jan 15 16:00:16 2013
@@ -1962,9 +1962,11 @@
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)
More information about the llvm-commits
mailing list