diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp index 2b5ec5de7f9..5eda88d1a38 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -109,6 +109,6 @@ GenericValue MCJIT::runFunction(Function *F, void *FPtr = getPointerToFunction(F); if (!FPtr) report_fatal_error("Unable to locate function: '" + F->getName() + "'"); - ((void(*)(void))FPtr)(); + ((void(*)(void))(intptr_t)FPtr)(); return GenericValue(); } |