From 9669f749764997ab7033d5c4b0546fe739dd71d8 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 24 Jul 2012 21:07:56 +0000 Subject: [PATCH] [Object] Remove unneeded const_cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160692 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ELF.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.34.1