summaryrefslogtreecommitdiff
path: root/docs/tutorial/LangImpl4.html
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-06-14 06:09:39 +0000
committerEric Christopher <echristo@apple.com>2010-06-14 06:09:39 +0000
commit2214b811961285ae4b857598dfee538bc456ad2e (patch)
tree8dbca474a281bcafae67a198cb1f0cb0dd6c303f /docs/tutorial/LangImpl4.html
parent2632bbf0de4637e02f333952991263d526976faf (diff)
downloadllvm-2214b811961285ae4b857598dfee538bc456ad2e.tar.gz
llvm-2214b811961285ae4b857598dfee538bc456ad2e.tar.bz2
llvm-2214b811961285ae4b857598dfee538bc456ad2e.tar.xz
Update html tutorial docs to match api changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl4.html')
-rw-r--r--docs/tutorial/LangImpl4.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html
index 81c2dc5548..35dcdf4914 100644
--- a/docs/tutorial/LangImpl4.html
+++ b/docs/tutorial/LangImpl4.html
@@ -876,9 +876,9 @@ Value *BinaryExprAST::Codegen() {
if (L == 0 || R == 0) return 0;
switch (Op) {
- case '+': return Builder.CreateAdd(L, R, "addtmp");
- case '-': return Builder.CreateSub(L, R, "subtmp");
- case '*': return Builder.CreateMul(L, R, "multmp");
+ case '+': return Builder.CreateFAdd(L, R, "addtmp");
+ case '-': return Builder.CreateFSub(L, R, "subtmp");
+ case '*': return Builder.CreateFMul(L, R, "multmp");
case '&lt;':
L = Builder.CreateFCmpULT(L, R, "cmptmp");
// Convert bool 0/1 to double 0.0 or 1.0