summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObject.cpp
diff options
context:
space:
mode:
authorGalina Kistanova <gkistanova@gmail.com>2012-07-19 21:43:55 +0000
committerGalina Kistanova <gkistanova@gmail.com>2012-07-19 21:43:55 +0000
commit27540f8d8c14934ee73c6dc8ea3c6ba16a99de8a (patch)
tree02edafc96315e340f6c6eb66223e678478588e40 /llvm/lib/Object/MachOObject.cpp
parent8e59d2d940e3edae4f1bd9d0970b0c809eff627f (diff)
downloadbcm5719-llvm-27540f8d8c14934ee73c6dc8ea3c6ba16a99de8a.tar.gz
bcm5719-llvm-27540f8d8c14934ee73c6dc8ea3c6ba16a99de8a.zip
Reverting r 160419.
llvm-svn: 160525
Diffstat (limited to 'llvm/lib/Object/MachOObject.cpp')
-rw-r--r--llvm/lib/Object/MachOObject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Object/MachOObject.cpp b/llvm/lib/Object/MachOObject.cpp
index 90faa3b3647..00dea3fe476 100644
--- a/llvm/lib/Object/MachOObject.cpp
+++ b/llvm/lib/Object/MachOObject.cpp
@@ -44,8 +44,7 @@ static void ReadInMemoryStruct(const MachOObject &MOO,
}
// Check whether we can return a direct pointer.
- struct_type *Ptr =
- const_cast<struct_type *>((const struct_type *)(Buffer.data() + Base));
+ struct_type *Ptr = (struct_type *) (Buffer.data() + Base);
if (!MOO.isSwappedEndian()) {
Res = Ptr;
return;
OpenPOWER on IntegriCloud