diff options
author | Dan Gohman <gohman@apple.com> | 2008-06-21 20:17:03 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-06-21 20:17:03 +0000 |
commit | 933e51c5e3b9db7b0deebcbca387c86cb3b7cb3b (patch) | |
tree | 6c3e96c81489379a7728ee0290099d3bd98f265e /lib/ExecutionEngine | |
parent | 629c1a3f78494d0dd769fe82bd2bd17df0555843 (diff) | |
download | external_llvm-933e51c5e3b9db7b0deebcbca387c86cb3b7cb3b.zip external_llvm-933e51c5e3b9db7b0deebcbca387c86cb3b7cb3b.tar.gz external_llvm-933e51c5e3b9db7b0deebcbca387c86cb3b7cb3b.tar.bz2 |
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
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITMemoryManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp index b07af2e..4cbfcf9 100644 --- a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp +++ b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp @@ -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. |