From f57fcf78445c0a5f4789a2825f5ef9157c5b217d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 1 Sep 2010 20:09:20 +0000 Subject: 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 --- docs/tutorial/LangImpl6.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/tutorial/LangImpl6.html') diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html index 9a05fbf..97505f7 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->Codegen(); -- cgit v1.1