diff options
-rw-r--r-- | include/llvm/Object/ELF.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 1b536f17bf..7698441fd1 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -793,8 +793,7 @@ const typename ELFObjectFile<target_endianness, is64Bits>::Elf_Shdr * ELFObjectFile<target_endianness, is64Bits> ::getElfSection(section_iterator &It) const { llvm::object::DataRefImpl ShdrRef = It->getRawDataRefImpl(); - return const_cast<Elf_Shdr*>(reinterpret_cast<const Elf_Shdr *> - (ShdrRef.p)); + return reinterpret_cast<const Elf_Shdr *>(ShdrRef.p); } template<support::endianness target_endianness, bool is64Bits> |