From 93e0e20314c48f305b74dca15d3f6be103957909 Mon Sep 17 00:00:00 2001 From: Galina Kistanova Date: Thu, 19 Jul 2012 21:43:55 +0000 Subject: [PATCH] Reverting r 160419. llvm-svn: 160525 --- lib/Object/MachOObject.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Object/MachOObject.cpp b/lib/Object/MachOObject.cpp index 90faa3b3647..00dea3fe476 100644 --- a/lib/Object/MachOObject.cpp +++ b/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((const struct_type *)(Buffer.data() + Base)); + struct_type *Ptr = (struct_type *) (Buffer.data() + Base); if (!MOO.isSwappedEndian()) { Res = Ptr; return;