Minor code simplification.

llvm-svn: 76496
This commit is contained in:
Dan Gohman 2009-07-20 22:41:51 +00:00
parent b07de44d5a
commit d231d78f3f
1 changed files with 1 additions and 1 deletions

View File

@ -2632,7 +2632,7 @@ ScalarEvolution::getUnsignedRange(const SCEV *S) {
APInt Max = APIntOps::umax(StartRange.getUnsignedMax(),
EndRange.getUnsignedMax());
if (Min.isMinValue() && Max.isMaxValue())
return ConstantRange(Min.getBitWidth(), /*isFullSet=*/true);
return FullSet;
return ConstantRange(Min, Max+1);
}
}