Silence a warning.
authorJim Grosbach <grosbach@apple.com>
Fri, 18 Mar 2011 22:50:49 +0000 (22:50 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 18 Mar 2011 22:50:49 +0000 (22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127918 91177308-0d34-0410-b5e6-96231b3b80d8

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();
 }