From: Aaron Ballman Date: Fri, 27 Jun 2014 18:25:49 +0000 (+0000) Subject: Silencing some -Wcast-qual warnings. No functional changes intended. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=152dff71fafb58610c9b931cd95c55a291d5e6cd;p=platform%2Fupstream%2Fllvm.git Silencing some -Wcast-qual warnings. No functional changes intended. llvm-svn: 211923 --- diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 71b914d..4eb516c 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -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");