mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Reverting r 160419.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -44,8 +44,7 @@ static void ReadInMemoryStruct(const MachOObject &MOO,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check whether we can return a direct pointer.
|
// Check whether we can return a direct pointer.
|
||||||
struct_type *Ptr =
|
struct_type *Ptr = (struct_type *) (Buffer.data() + Base);
|
||||||
const_cast<struct_type *>((const struct_type *)(Buffer.data() + Base));
|
|
||||||
if (!MOO.isSwappedEndian()) {
|
if (!MOO.isSwappedEndian()) {
|
||||||
Res = Ptr;
|
Res = Ptr;
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user