Fix unsigned off-by-one in comment.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 21 Feb 2012 13:40:06 +0000 (13:40 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 21 Feb 2012 13:40:06 +0000 (13:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151056 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCompares.cpp

index 2f608b26acc58a6538128771800aed24bea5af20..53089928c3f5b76f705ca21b4a838c13ff36a788 100644 (file)
@@ -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;