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 | f57fcf78445c0a5f4789a2825f5ef9157c5b217d (patch) | |
tree | fd2a1c15da9ed46755e6ed925edb4d90027ed61a /docs/tutorial/LangImpl5.html | |
parent | 1f758831cbbdbfcb0cf164959b08b8219deac018 (diff) | |
download | llvm-f57fcf78445c0a5f4789a2825f5ef9157c5b217d.tar.gz llvm-f57fcf78445c0a5f4789a2825f5ef9157c5b217d.tar.bz2 llvm-f57fcf78445c0a5f4789a2825f5ef9157c5b217d.tar.xz |
update the tutorial to use CreateFAdd to create fp operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl5.html')
-rw-r--r-- | docs/tutorial/LangImpl5.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index b42c488c11..79bf5f82aa 100644 --- a/docs/tutorial/LangImpl5.html +++ b/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(); |