summaryrefslogtreecommitdiffstats
path: root/llvm/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
commite6819aeee0ccd91d71397c7872aa86b228b6db84 (patch)
tree4fff12d178e007d6ed805b25469d00afe2e632e4 /llvm/docs/tutorial/LangImpl6.html
parent0d28238a1f642c2dbe4c16a730be31064619a7f4 (diff)
downloadbcm5719-llvm-e6819aeee0ccd91d71397c7872aa86b228b6db84.tar.gz
bcm5719-llvm-e6819aeee0ccd91d71397c7872aa86b228b6db84.zip
fixes from Ryan Brown.
llvm-svn: 43747
Diffstat (limited to 'llvm/docs/tutorial/LangImpl6.html')
-rw-r--r--llvm/docs/tutorial/LangImpl6.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/LangImpl6.html b/llvm/docs/tutorial/LangImpl6.html
index b113afc3640..8976acf50e7 100644
--- a/llvm/docs/tutorial/LangImpl6.html
+++ b/llvm/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;
OpenPOWER on IntegriCloud