forked from OSchip/llvm-project
parent
8e59d2d940
commit
27540f8d8c
|
@ -44,8 +44,7 @@ static void ReadInMemoryStruct(const MachOObject &MOO,
|
|||
}
|
||||
|
||||
// Check whether we can return a direct pointer.
|
||||
struct_type *Ptr =
|
||||
const_cast<struct_type *>((const struct_type *)(Buffer.data() + Base));
|
||||
struct_type *Ptr = (struct_type *) (Buffer.data() + Base);
|
||||
if (!MOO.isSwappedEndian()) {
|
||||
Res = Ptr;
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue