Reverting r 160419.

llvm-svn: 160525
This commit is contained in:
Galina Kistanova 2012-07-19 21:43:55 +00:00
parent 8e59d2d940
commit 27540f8d8c
1 changed files with 1 additions and 2 deletions

View File

@ -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;