diff options
author | Eric Christopher <echristo@apple.com> | 2010-06-14 06:09:39 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-06-14 06:09:39 +0000 |
commit | 2214b811961285ae4b857598dfee538bc456ad2e (patch) | |
tree | 8dbca474a281bcafae67a198cb1f0cb0dd6c303f /docs/tutorial/LangImpl7.html | |
parent | 2632bbf0de4637e02f333952991263d526976faf (diff) | |
download | external_llvm-2214b811961285ae4b857598dfee538bc456ad2e.zip external_llvm-2214b811961285ae4b857598dfee538bc456ad2e.tar.gz external_llvm-2214b811961285ae4b857598dfee538bc456ad2e.tar.bz2 |
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/LangImpl7.html')
-rw-r--r-- | docs/tutorial/LangImpl7.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index 8a0381f..9128a8d 100644 --- a/docs/tutorial/LangImpl7.html +++ b/docs/tutorial/LangImpl7.html @@ -1672,9 +1672,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 '<': L = Builder.CreateFCmpULT(L, R, "cmptmp"); // Convert bool 0/1 to double 0.0 or 1.0 |