forked from OSchip/llvm-project
Do not declare a variable which is used only in assert. NFC
llvm-svn: 310034
This commit is contained in:
parent
7fba72e97b
commit
9505470033
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue