summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-11 22:13:11 +0000
committerDan Gohman <gohman@apple.com>2010-04-11 22:13:11 +0000
commitf7f28511a96e37665fd41452869428cc9b66ce05 (patch)
treed3afe369958c81c6314d724c8c6590f69e53a2aa
parentae4a4148baf1551894404ec896586441d61919f9 (diff)
downloadbcm5719-llvm-f7f28511a96e37665fd41452869428cc9b66ce05.tar.gz
bcm5719-llvm-f7f28511a96e37665fd41452869428cc9b66ce05.zip
Minor code simplification.
llvm-svn: 100994
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 44aa5082b1c..f8b2d78bbef 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -2922,8 +2922,7 @@ ScalarEvolution::getUnsignedRange(const SCEV *S) {
if (const SCEVConstant *C = dyn_cast<SCEVConstant>(AddRec->getStart()))
if (!C->isZero())
ConservativeResult =
- ConstantRange(C->getValue()->getValue(),
- APInt(getTypeSizeInBits(C->getType()), 0));
+ ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0));
// TODO: non-affine addrec
if (AddRec->isAffine()) {
OpenPOWER on IntegriCloud