diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-09-01 20:09:20 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-09-01 20:09:20 +0000 |
| commit | 44ab470c8e4e820044893258b5b756ad8b9b4f60 (patch) | |
| tree | 204aeb9341628676f69a0a6899488226972abd39 /llvm/docs/tutorial/LangImpl6.html | |
| parent | cbb4be0c930748b70361dc8c290e01a00d09e09b (diff) | |
| download | bcm5719-llvm-44ab470c8e4e820044893258b5b756ad8b9b4f60.tar.gz bcm5719-llvm-44ab470c8e4e820044893258b5b756ad8b9b4f60.zip | |
update the tutorial to use CreateFAdd to create fp operations.
llvm-svn: 112733
Diffstat (limited to 'llvm/docs/tutorial/LangImpl6.html')
| -rw-r--r-- | llvm/docs/tutorial/LangImpl6.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/LangImpl6.html b/llvm/docs/tutorial/LangImpl6.html index 9a05fbf7b83..97505f7c349 100644 --- a/llvm/docs/tutorial/LangImpl6.html +++ b/llvm/docs/tutorial/LangImpl6.html @@ -1540,7 +1540,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(); |

