summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit44ab470c8e4e820044893258b5b756ad8b9b4f60 (patch)
tree204aeb9341628676f69a0a6899488226972abd39 /llvm/docs/tutorial/LangImpl6.html
parentcbb4be0c930748b70361dc8c290e01a00d09e09b (diff)
downloadbcm5719-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.html2
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-&gt;Codegen();
OpenPOWER on IntegriCloud