[llvm-commits] [llvm] r160419 - /llvm/trunk/lib/Object/MachOObject.cpp
Galina Kistanova
gkistanova at gmail.com
Tue Jul 17 21:06:49 PDT 2012
Author: gkistanova
Date: Tue Jul 17 23:06:49 2012
New Revision: 160419
URL: http://llvm.org/viewvc/llvm-project?rev=160419&view=rev
Log:
Fixed few warnings.
Modified:
llvm/trunk/lib/Object/MachOObject.cpp
Modified: llvm/trunk/lib/Object/MachOObject.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObject.cpp?rev=160419&r1=160418&r2=160419&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObject.cpp (original)
+++ llvm/trunk/lib/Object/MachOObject.cpp Tue Jul 17 23:06:49 2012
@@ -44,7 +44,8 @@
}
// 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;
More information about the llvm-commits
mailing list