diff options
author | Galina Kistanova <gkistanova@gmail.com> | 2012-07-18 04:06:49 +0000 |
---|---|---|
committer | Galina Kistanova <gkistanova@gmail.com> | 2012-07-18 04:06:49 +0000 |
commit | d3a32b952b893c9799828fc2e8264385424f87ff (patch) | |
tree | bdc006c398a21d61a853b54d9d5fe4e0cbec69d2 /lib/Object | |
parent | 4532bf6ecf39d02b60d4c77f807c2f04e51e3583 (diff) | |
download | external_llvm-d3a32b952b893c9799828fc2e8264385424f87ff.zip external_llvm-d3a32b952b893c9799828fc2e8264385424f87ff.tar.gz external_llvm-d3a32b952b893c9799828fc2e8264385424f87ff.tar.bz2 |
Fixed few warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r-- | lib/Object/MachOObject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Object/MachOObject.cpp b/lib/Object/MachOObject.cpp index 00dea3f..90faa3b 100644 --- a/lib/Object/MachOObject.cpp +++ b/lib/Object/MachOObject.cpp @@ -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; |