Do not declare a variable which is used only in assert. NFC

llvm-svn: 310034
This commit is contained in:
Max Kazantsev 2017-08-04 07:41:24 +00:00
parent 7fba72e97b
commit 9505470033
1 changed files with 1 additions and 2 deletions

View File

@ -1608,8 +1608,7 @@ InductiveRangeCheck::computeSafeIterationSpace(
if (D != B)
return None;
ConstantInt *ConstD = D->getValue();
assert(!ConstD->isZero() && "Recurrence with zero step?");
assert(!D->getValue()->isZero() && "Recurrence with zero step?");
const SCEV *M = SE.getMinusSCEV(C, A);
const SCEV *Begin = SE.getNegativeSCEV(M);