summaryrefslogtreecommitdiffstats
path: root/llvm/examples
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-15 00:16:05 +0000
committerChris Lattner <sabre@nondot.org>2009-04-15 00:16:05 +0000
commit0813c0c34cb7d8a9e75a67b51c7fce19a9891fd4 (patch)
tree31fa372e0a1ea927fa5151616991af179e8f1e80 /llvm/examples
parent32d17a1a293d2273b619a54a37a721554d39012f (diff)
downloadbcm5719-llvm-0813c0c34cb7d8a9e75a67b51c7fce19a9891fd4.tar.gz
bcm5719-llvm-0813c0c34cb7d8a9e75a67b51c7fce19a9891fd4.zip
silence a warning.
llvm-svn: 69117
Diffstat (limited to 'llvm/examples')
-rw-r--r--llvm/examples/Kaleidoscope/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/toy.cpp b/llvm/examples/Kaleidoscope/toy.cpp
index 87950d7e91b..bec430c41f5 100644
--- a/llvm/examples/Kaleidoscope/toy.cpp
+++ b/llvm/examples/Kaleidoscope/toy.cpp
@@ -1033,7 +1033,7 @@ static void HandleTopLevelExpression() {
// 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 {
OpenPOWER on IntegriCloud