Drop unnecessary static_cast.

ELFT::TargetEndianness already has the correct type.

llvm-svn: 244032
This commit is contained in:
Rafael Espindola 2015-08-05 11:53:59 +00:00
parent edc370e53d
commit c80b519f87

View File

@ -734,9 +734,7 @@ ELFObjectFile<ELFT>::getRela(DataRefImpl Rela) const {
template <class ELFT>
ELFObjectFile<ELFT>::ELFObjectFile(MemoryBufferRef Object, std::error_code &EC)
: ELFObjectFileBase(
getELFType(static_cast<endianness>(ELFT::TargetEndianness) ==
support::little,
ELFT::Is64Bits),
getELFType(ELFT::TargetEndianness == support::little, ELFT::Is64Bits),
Object),
EF(Data.getBuffer(), EC) {}