mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Use static_cast instead of reinterpret_cast for casting void*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -369,7 +369,7 @@ DefaultJITMemoryManager::DefaultJITMemoryManager() {
|
||||
// Allocate a 16M block of memory for functions.
|
||||
sys::MemoryBlock MemBlock = getNewMemoryBlock(16 << 20);
|
||||
|
||||
unsigned char *MemBase = reinterpret_cast<unsigned char*>(MemBlock.base());
|
||||
unsigned char *MemBase = static_cast<unsigned char*>(MemBlock.base());
|
||||
|
||||
// Allocate stubs backwards from the base, allocate functions forward
|
||||
// from the base.
|
||||
|
||||
Reference in New Issue
Block a user