mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-30 08:56:40 +00:00
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
This commit is contained in:
parent
7cadb8f32b
commit
f1595fb549
@ -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) {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user