mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 06:40:18 +00:00
Drop unnecessary static_cast.
ELFT::TargetEndianness already has the correct type. llvm-svn: 244032
This commit is contained in:
parent
edc370e53d
commit
c80b519f87
@ -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…
Reference in New Issue
Block a user