summaryrefslogtreecommitdiffstats
path: root/examples/Fibonacci
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-13 03:29:42 +0000
committerChris Lattner <sabre@nondot.org>2008-03-13 03:29:42 +0000
commit7520fcd7a5e4c17011588aab105dea9afa2ba3ec (patch)
tree68823c892c919ce30ad9cbef2e2c622dadb4b4d7 /examples/Fibonacci
parentfe666a3592b2f59cf67a2f72a148f4db40f34b2f (diff)
downloadexternal_llvm-7520fcd7a5e4c17011588aab105dea9afa2ba3ec.zip
external_llvm-7520fcd7a5e4c17011588aab105dea9afa2ba3ec.tar.gz
external_llvm-7520fcd7a5e4c17011588aab105dea9afa2ba3ec.tar.bz2
Fix an incorrect comment, PR2147.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Fibonacci')
-rw-r--r--examples/Fibonacci/fibonacci.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Fibonacci/fibonacci.cpp b/examples/Fibonacci/fibonacci.cpp
index 9ffb3d9..b028c4b 100644
--- a/examples/Fibonacci/fibonacci.cpp
+++ b/examples/Fibonacci/fibonacci.cpp
@@ -58,7 +58,7 @@ static Function *CreateFibFunction(Module *M) {
// Create an exit block.
BasicBlock* RecurseBB = new BasicBlock("recurse", FibF);
- // Create the "if (arg < 2) goto exitbb"
+ // Create the "if (arg <= 2) goto exitbb"
Value *CondInst = new ICmpInst(ICmpInst::ICMP_SLE, ArgX, Two, "cond", BB);
new BranchInst(RetBB, RecurseBB, CondInst, BB);