[llvm-commits] [llvm] r69117 - /llvm/trunk/examples/Kaleidoscope/toy.cpp

Chris Lattner sabre at nondot.org
Tue Apr 14 17:16:05 PDT 2009


Author: lattner
Date: Tue Apr 14 19:16:05 2009
New Revision: 69117

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

Modified:
    llvm/trunk/examples/Kaleidoscope/toy.cpp

Modified: llvm/trunk/examples/Kaleidoscope/toy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/toy.cpp?rev=69117&r1=69116&r2=69117&view=diff

==============================================================================
--- llvm/trunk/examples/Kaleidoscope/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/toy.cpp Tue Apr 14 19:16:05 2009
@@ -1033,7 +1033,7 @@
       
       // Cast it to the right type (takes no arguments, returns a double) so we
       // can call it as a native function.
-      double (*FP)() = (double (*)())FPtr;
+      double (*FP)() = (double (*)())(intptr_t)FPtr;
       fprintf(stderr, "Evaluated to %f\n", FP());
     }
   } else {





More information about the llvm-commits mailing list