From f1595fb54924218e122f3cad80c0826b6da3f15f Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 5 Aug 2015 11:53:59 +0000 Subject: [PATCH] Drop unnecessary static_cast. ELFT::TargetEndianness already has the correct type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244032 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ELFObjectFile.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 2a870bdbca9..cde5f8dc51e 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -734,9 +734,7 @@ ELFObjectFile::getRela(DataRefImpl Rela) const { template ELFObjectFile::ELFObjectFile(MemoryBufferRef Object, std::error_code &EC) : ELFObjectFileBase( - getELFType(static_cast(ELFT::TargetEndianness) == - support::little, - ELFT::Is64Bits), + getELFType(ELFT::TargetEndianness == support::little, ELFT::Is64Bits), Object), EF(Data.getBuffer(), EC) {} -- 2.34.1