Skip to content

Commit

Permalink
Fixed few warnings.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160419 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gkistanova committed Jul 18, 2012
1 parent 4532bf6 commit d3a32b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Object/MachOObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ static void ReadInMemoryStruct(const MachOObject &MOO,
}

// Check whether we can return a direct pointer.
struct_type *Ptr = (struct_type *) (Buffer.data() + Base);
struct_type *Ptr =
const_cast<struct_type *>((const struct_type *)(Buffer.data() + Base));
if (!MOO.isSwappedEndian()) {
Res = Ptr;
return;
Expand Down

0 comments on commit d3a32b9

Please sign in to comment.