projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1be3ecc
)
silence a warning.
author
Chris Lattner
<sabre@nondot.org>
Wed, 15 Apr 2009 00:16:05 +0000
(
00:16
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 15 Apr 2009 00:16:05 +0000
(
00:16
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69117
91177308
-0d34-0410-b5e6-
96231b3b80d8
examples/Kaleidoscope/toy.cpp
patch
|
blob
|
history
diff --git
a/examples/Kaleidoscope/toy.cpp
b/examples/Kaleidoscope/toy.cpp
index 87950d7e91b9d7de402e62c373bf219800be8f3b..bec430c41f5adfec790252b66fb650c00ecf7157 100644
(file)
--- a/
examples/Kaleidoscope/toy.cpp
+++ b/
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 {