From: Michael J. Spencer Date: Tue, 24 Jul 2012 21:07:56 +0000 (+0000) Subject: [Object] Remove unneeded const_cast. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9669f749764997ab7033d5c4b0546fe739dd71d8;p=oota-llvm.git [Object] Remove unneeded const_cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160692 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 1b536f17bff..7698441fd1c 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -793,8 +793,7 @@ const typename ELFObjectFile::Elf_Shdr * ELFObjectFile ::getElfSection(section_iterator &It) const { llvm::object::DataRefImpl ShdrRef = It->getRawDataRefImpl(); - return const_cast(reinterpret_cast - (ShdrRef.p)); + return reinterpret_cast(ShdrRef.p); } template