mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 05:00:39 +00:00
Fix unsigned off-by-one in comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8294eb5599
commit
a42d5c4252
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user