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 | 4f475d07ba60a58f835b1bf138ef5da594bef47c (patch) | |
| tree | 7a4a52d79caff684a3baf3ee1b8b3178b86f036b /llvm/docs/tutorial/LangImpl4.html | |
| parent | 95f5652e2d14b1d2a32c25c6791598dee12d901c (diff) | |
| download | bcm5719-llvm-4f475d07ba60a58f835b1bf138ef5da594bef47c.tar.gz bcm5719-llvm-4f475d07ba60a58f835b1bf138ef5da594bef47c.zip | |
Update html tutorial docs to match api changes.
llvm-svn: 105933
Diffstat (limited to 'llvm/docs/tutorial/LangImpl4.html')
| -rw-r--r-- | llvm/docs/tutorial/LangImpl4.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/LangImpl4.html b/llvm/docs/tutorial/LangImpl4.html index 81c2dc5548c..35dcdf4914e 100644 --- a/llvm/docs/tutorial/LangImpl4.html +++ b/llvm/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 '<': L = Builder.CreateFCmpULT(L, R, "cmptmp"); // Convert bool 0/1 to double 0.0 or 1.0 |

