From f73ed98d56d95d962473a300bea2193f7f9858d5 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sun, 11 Apr 2010 22:13:11 +0000 Subject: [PATCH] Minor code simplification. llvm-svn: 100994 --- lib/Analysis/ScalarEvolution.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 44aa5082b1c..f8b2d78bbef 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -2922,8 +2922,7 @@ ScalarEvolution::getUnsignedRange(const SCEV *S) { if (const SCEVConstant *C = dyn_cast(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()) {