[llvm-commits] [llvm] r127918 - /llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp

Jim Grosbach grosbach at apple.com
Fri Mar 18 15:50:49 PDT 2011


Author: grosbach
Date: Fri Mar 18 17:50:49 2011
New Revision: 127918

URL: http://llvm.org/viewvc/llvm-project?rev=127918&view=rev
Log:
Silence a warning.

Modified:
    llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp

Modified: llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp?rev=127918&r1=127917&r2=127918&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp Fri Mar 18 17:50:49 2011
@@ -109,6 +109,6 @@
   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();
 }





More information about the llvm-commits mailing list