mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Fix -Wcast-qual warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -241,7 +241,7 @@ llvm::GetBitcodeSymbols(const unsigned char *BufPtr, unsigned Length,
|
||||
// Get the module.
|
||||
std::auto_ptr<MemoryBuffer> Buffer(
|
||||
MemoryBuffer::getNewMemBuffer(Length, ModuleID.c_str()));
|
||||
memcpy((char*)Buffer->getBufferStart(), BufPtr, Length);
|
||||
memcpy(const_cast<char *>(Buffer->getBufferStart()), BufPtr, Length);
|
||||
|
||||
Module *M = ParseBitcodeFile(Buffer.get(), Context, ErrMsg);
|
||||
if (!M)
|
||||
|
Reference in New Issue
Block a user