[llvm] r211923 - Silencing some -Wcast-qual warnings. No functional changes intended.
Aaron Ballman
aaron at aaronballman.com
Fri Jun 27 11:25:49 PDT 2014
Author: aaronballman
Date: Fri Jun 27 13:25:49 2014
New Revision: 211923
URL: http://llvm.org/viewvc/llvm-project?rev=211923&view=rev
Log:
Silencing some -Wcast-qual warnings. No functional changes intended.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp?rev=211923&r1=211922&r2=211923&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp Fri Jun 27 13:25:49 2014
@@ -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::createObj
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");
More information about the llvm-commits
mailing list