Silence a warning.
[oota-llvm.git] / lib / ExecutionEngine / MCJIT / MCJIT.cpp
index 2b5ec5de7f949f40dea848a0a37052e45239b3b0..5eda88d1a382d9e5b1b06984d1e7f7872e87fd94 100644 (file)
@@ -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();
 }