use nullptr instead of NULL

llvm-svn: 208622
This commit is contained in:
Sebastian Pop 2014-05-12 20:11:01 +00:00
parent 63e4b30f79
commit 05719e486f
1 changed files with 4 additions and 4 deletions

View File

@ -7344,7 +7344,7 @@ const SCEV *SCEVAddRecExpr::computeAccessFunctions(
// Early exit in case this SCEV is not an affine multivariate function.
if (Sizes.empty() || !this->isAffine())
return NULL;
return nullptr;
const SCEV *Zero = SE.getConstant(this->getType(), 0);
const SCEV *Res = this, *Remainder = Zero;
@ -7446,19 +7446,19 @@ SCEVAddRecExpr::delinearize(ScalarEvolution &SE,
collectParametricTerms(SE, Terms);
if (Terms.empty())
return NULL;
return nullptr;
// Second step: find subscript sizes.
SE.findArrayDimensions(Terms, Sizes);
if (Sizes.empty())
return NULL;
return nullptr;
// Third step: compute the access functions for each subscript.
const SCEV *Remainder = computeAccessFunctions(SE, Subscripts, Sizes);
if (!Remainder || Subscripts.empty())
return NULL;
return nullptr;
DEBUG({
dbgs() << "succeeded to delinearize " << *this << "\n";