summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObject.cpp
diff options
context:
space:
mode:
authorGalina Kistanova <gkistanova@gmail.com>2012-07-18 04:06:49 +0000
committerGalina Kistanova <gkistanova@gmail.com>2012-07-18 04:06:49 +0000
commit5ac251b81ad13912d6f45836b97a5804e95e25a8 (patch)
tree90675d0a7d922b3e7f2ed7029d6c869885a790de /llvm/lib/Object/MachOObject.cpp
parentaf136f8191bf4c869f2d5d50dc9536081fee69c4 (diff)
downloadbcm5719-llvm-5ac251b81ad13912d6f45836b97a5804e95e25a8.tar.gz
bcm5719-llvm-5ac251b81ad13912d6f45836b97a5804e95e25a8.zip
Fixed few warnings.
llvm-svn: 160419
Diffstat (limited to 'llvm/lib/Object/MachOObject.cpp')
-rw-r--r--llvm/lib/Object/MachOObject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Object/MachOObject.cpp b/llvm/lib/Object/MachOObject.cpp
index 00dea3fe476..90faa3b3647 100644
--- a/llvm/lib/Object/MachOObject.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud