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/LangImpl5.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/LangImpl5.html')
| -rw-r--r-- | llvm/docs/tutorial/LangImpl5.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/LangImpl5.html b/llvm/docs/tutorial/LangImpl5.html index b42c488c11e..79bf5f82aa9 100644 --- a/llvm/docs/tutorial/LangImpl5.html +++ b/llvm/docs/tutorial/LangImpl5.html @@ -800,7 +800,7 @@ references to it will naturally find it in the symbol table.</p> StepVal = ConstantFP::get(getGlobalContext(), APFloat(1.0)); } - Value *NextVar = Builder.CreateAdd(Variable, StepVal, "nextvar"); + Value *NextVar = Builder.CreateFAdd(Variable, StepVal, "nextvar"); </pre> </div> @@ -1517,7 +1517,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(); |

