summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl7.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
commit4f475d07ba60a58f835b1bf138ef5da594bef47c (patch)
tree7a4a52d79caff684a3baf3ee1b8b3178b86f036b /llvm/docs/tutorial/LangImpl7.html
parent95f5652e2d14b1d2a32c25c6791598dee12d901c (diff)
downloadbcm5719-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/LangImpl7.html')
-rw-r--r--llvm/docs/tutorial/LangImpl7.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/LangImpl7.html b/llvm/docs/tutorial/LangImpl7.html
index 8a0381fb6d1..9128a8dc588 100644
--- a/llvm/docs/tutorial/LangImpl7.html
+++ b/llvm/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 '&lt;':
L = Builder.CreateFCmpULT(L, R, "cmptmp");
// Convert bool 0/1 to double 0.0 or 1.0
OpenPOWER on IntegriCloud