minor simplification in the call to ConstantRange constructor

llvm-svn: 157024
This commit is contained in:
Nuno Lopes 2012-05-17 23:04:08 +00:00
parent 58b844aebf
commit 097e37da0e
1 changed files with 1 additions and 1 deletions

View File

@ -818,7 +818,7 @@ bool LazyValueInfoCache::getEdgeValue(Value *Val, BasicBlock *BBFrom,
ConstantInt *CI = dyn_cast<ConstantInt>(ICI->getOperand(1));
if (CI && (ICI->getOperand(0) == Val || NegOffset)) {
// Calculate the range of values that would satisfy the comparison.
ConstantRange CmpRange(CI->getValue(), CI->getValue()+1);
ConstantRange CmpRange(CI->getValue());
ConstantRange TrueValues =
ConstantRange::makeICmpRegion(ICI->getPredicate(), CmpRange);