mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-25 13:20:57 +00:00
Fix More Casts
Fix another cast-away-const cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
914d4a76fe
commit
5a80eefdf7
@ -44,7 +44,8 @@ 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 *) (Buffer.data() + Base);
|
struct_type *Ptr = reinterpret_cast<struct_type *>(
|
||||||
|
const_cast<char *>(Buffer.data() + Base));
|
||||||
if (!MOO.isSwappedEndian()) {
|
if (!MOO.isSwappedEndian()) {
|
||||||
Res = Ptr;
|
Res = Ptr;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user