diff options
Diffstat (limited to 'llvm/lib/Object/MachOObject.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObject.cpp | 3 |
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; |