aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-02-21 13:40:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-02-21 13:40:06 +0000
commita42d5c425251b6f30d46744d494817f788c408be (patch)
tree3113b98e8e8550e98ab386b3e7f464cae968e1c6 /lib
parent8294eb5599092e3d8e95c9c4d323ffa139499acf (diff)
downloadexternal_llvm-a42d5c425251b6f30d46744d494817f788c408be.zip
external_llvm-a42d5c425251b6f30d46744d494817f788c408be.tar.gz
external_llvm-a42d5c425251b6f30d46744d494817f788c408be.tar.bz2
Fix unsigned off-by-one in comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/InstCombine/InstCombineCompares.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 2f608b2..5308992 100644
--- a/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -575,7 +575,7 @@ Instruction *InstCombiner::FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS,
// GEP is inbounds, the final add of the base pointer can have signed overflow
// and would change the result of the icmp.
// e.g. "&foo[0] <s &foo[1]" can't be folded to "true" because "foo" could be
- // the minimum signed value for the pointer type.
+ // the maximum signed value for the pointer type.
if (ICmpInst::isSigned(Cond))
return 0;