projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4532bf6
)
Fixed few warnings.
author
Galina Kistanova
<gkistanova@gmail.com>
Wed, 18 Jul 2012 04:06:49 +0000
(
04:06
+0000)
committer
Galina Kistanova
<gkistanova@gmail.com>
Wed, 18 Jul 2012 04:06:49 +0000
(
04:06
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160419
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Object/MachOObject.cpp
patch
|
blob
|
history
diff --git
a/lib/Object/MachOObject.cpp
b/lib/Object/MachOObject.cpp
index 00dea3fe476973ca642795b63d77c177d6236dc8..90faa3b364750d4a2bd7882f87cdc46411b83376 100644
(file)
--- 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;