diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-21 22:51:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-21 22:51:14 +0000 |
commit | 26d7950f8fd917edfd7d395717636536f06c1cdd (patch) | |
tree | 30a3d0f4729d6bc2c33d77a809605460fe1970ab /llvm/examples/Kaleidoscope/Chapter6/toy.cpp | |
parent | 143d367ecfa971f0a9ca6de0b974e52c9e9c88d2 (diff) | |
download | bcm5719-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.cpp | 2 |
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(); |