aboutsummaryrefslogtreecommitdiff
path: root/docs/tutorial/LangImpl6.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-01 20:09:20 +0000
committerChris Lattner <sabre@nondot.org>2010-09-01 20:09:20 +0000
commitf57fcf78445c0a5f4789a2825f5ef9157c5b217d (patch)
treefd2a1c15da9ed46755e6ed925edb4d90027ed61a /docs/tutorial/LangImpl6.html
parent1f758831cbbdbfcb0cf164959b08b8219deac018 (diff)
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/LangImpl6.html')
-rw-r--r--docs/tutorial/LangImpl6.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html
index 9a05fbf7b8..97505f7c34 100644
--- a/docs/tutorial/LangImpl6.html
+++ b/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-&gt;Codegen();