diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-01 17:29:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-01 17:29:22 +0000 |
commit | 870286aa33290c00e55ba479a60251c79f3a7911 (patch) | |
tree | 70763f97631d0af4a89515c414cc9394047e977a /lib/ExecutionEngine/JIT/JITEmitter.cpp | |
parent | 26e6e109d559fb644b59231c14346997290dc9d6 (diff) |
Fix -pedantic warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JITEmitter.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 011b38648c..c8056613f0 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -494,7 +494,7 @@ namespace { MutexGuard locked(TheJIT->lock); /// Get the target-specific JIT resolver function. state.getStubToFunctionMap(locked)[Location] = F; - return (void*)LazyResolverFn; + return (void*)(intptr_t)LazyResolverFn; } /// getGOTIndexForAddress - Return a new or existing index in the GOT for @@ -527,7 +527,7 @@ void *JITResolver::getFunctionStub(Function *F) { // Call the lazy resolver function unless we already KNOW it is an external // function, in which case we just skip the lazy resolution step. - void *Actual = (void*)LazyResolverFn; + void *Actual = (void*)(intptr_t)LazyResolverFn; if (F->isExternal() && F->hasExternalLinkage()) Actual = TheJIT->getPointerToFunction(F); @@ -535,7 +535,7 @@ void *JITResolver::getFunctionStub(Function *F) { // resolver function. Stub = TheJIT->getJITInfo().emitFunctionStub(Actual, MCE); - if (Actual != (void*)LazyResolverFn) { + if (Actual != (void*)(intptr_t)LazyResolverFn) { // If we are getting the stub for an external function, we really want the // address of the stub in the GlobalAddressMap for the JIT, not the address // of the external function. |