summaryrefslogtreecommitdiff
path: root/docs/tutorial/LangImpl6.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-06 01:39:12 +0000
committerChris Lattner <sabre@nondot.org>2007-11-06 01:39:12 +0000
commit711552174e3a666175228c72ab88f1c37439e284 (patch)
tree8ed0cc3ce60c04670b2696d58d16b298457844d9 /docs/tutorial/LangImpl6.html
parent89c94f5cedbb975f7820b85acbe56d62f11bdfe5 (diff)
downloadllvm-711552174e3a666175228c72ab88f1c37439e284.tar.gz
llvm-711552174e3a666175228c72ab88f1c37439e284.tar.bz2
llvm-711552174e3a666175228c72ab88f1c37439e284.tar.xz
fixes from Ryan Brown.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl6.html')
-rw-r--r--docs/tutorial/LangImpl6.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html
index b113afc364..8976acf50e 100644
--- a/docs/tutorial/LangImpl6.html
+++ b/docs/tutorial/LangImpl6.html
@@ -280,7 +280,7 @@ Value *BinaryExprAST::Codegen() {
case '-': return Builder.CreateSub(L, R, "subtmp");
case '*': return Builder.CreateMul(L, R, "multmp");
case '&lt;':
- L = Builder.CreateFCmpULT(L, R, "multmp");
+ L = Builder.CreateFCmpULT(L, R, "cmptmp");
// Convert bool 0/1 to double 0.0 or 1.0
return Builder.CreateUIToFP(L, Type::DoubleTy, "booltmp");
<b>default: break;</b>
@@ -1396,7 +1396,7 @@ Value *BinaryExprAST::Codegen() {
case '-': return Builder.CreateSub(L, R, "subtmp");
case '*': return Builder.CreateMul(L, R, "multmp");
case '&lt;':
- L = Builder.CreateFCmpULT(L, R, "multmp");
+ L = Builder.CreateFCmpULT(L, R, "cmptmp");
// Convert bool 0/1 to double 0.0 or 1.0
return Builder.CreateUIToFP(L, Type::DoubleTy, "booltmp");
default: break;