summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/Chapter6/toy.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-21 22:51:14 +0000
committerChris Lattner <sabre@nondot.org>2010-06-21 22:51:14 +0000
commit26d7950f8fd917edfd7d395717636536f06c1cdd (patch)
tree30a3d0f4729d6bc2c33d77a809605460fe1970ab /llvm/examples/Kaleidoscope/Chapter6/toy.cpp
parent143d367ecfa971f0a9ca6de0b974e52c9e9c88d2 (diff)
downloadbcm5719-llvm-26d7950f8fd917edfd7d395717636536f06c1cdd.tar.gz
bcm5719-llvm-26d7950f8fd917edfd7d395717636536f06c1cdd.zip
fix several bugs in the tutorial, patch by Kevin Kelley!
llvm-svn: 106498
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter6/toy.cpp')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter6/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter6/toy.cpp b/llvm/examples/Kaleidoscope/Chapter6/toy.cpp
index ef348e55b6b..98a097cc47d 100644
--- a/llvm/examples/Kaleidoscope/Chapter6/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter6/toy.cpp
@@ -719,7 +719,7 @@ Value *ForExprAST::Codegen() {
StepVal = ConstantFP::get(getGlobalContext(), APFloat(1.0));
}
- Value *NextVar = Builder.CreateAdd(Variable, StepVal, "nextvar");
+ Value *NextVar = Builder.CreateFAdd(Variable, StepVal, "nextvar");
// Compute the end condition.
Value *EndCond = End->Codegen();
OpenPOWER on IntegriCloud