mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Silencing some -Wcast-qual warnings. No functional changes intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211923 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
75504d45ec
commit
f983ac349b
@ -121,7 +121,7 @@ public:
|
||||
};
|
||||
|
||||
ObjectImage *RuntimeDyldMachO::createObjectImage(ObjectBuffer *Buffer) {
|
||||
uint32_t magic = *((uint32_t *)Buffer->getBufferStart());
|
||||
uint32_t magic = *((const uint32_t *)Buffer->getBufferStart());
|
||||
bool is64 = (magic == MachO::MH_MAGIC_64);
|
||||
assert((magic == MachO::MH_MAGIC_64 || magic == MachO::MH_MAGIC) &&
|
||||
"Unrecognized Macho Magic");
|
||||
@ -136,7 +136,7 @@ ObjectImage *RuntimeDyldMachO::createObjectImageFromFile(
|
||||
MemoryBuffer *Buffer =
|
||||
MemoryBuffer::getMemBuffer(ObjFile->getData(), "", false);
|
||||
|
||||
uint32_t magic = *((uint32_t *)Buffer->getBufferStart());
|
||||
uint32_t magic = *((const uint32_t *)Buffer->getBufferStart());
|
||||
bool is64 = (magic == MachO::MH_MAGIC_64);
|
||||
assert((magic == MachO::MH_MAGIC_64 || magic == MachO::MH_MAGIC) &&
|
||||
"Unrecognized Macho Magic");
|
||||
|
Loading…
x
Reference in New Issue
Block a user