use nullptr instead of NULL
authorSebastian Pop <spop@codeaurora.org>
Mon, 12 May 2014 20:11:01 +0000 (20:11 +0000)
committerSebastian Pop <spop@codeaurora.org>
Mon, 12 May 2014 20:11:01 +0000 (20:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208622 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index 8073b270e1c698e56ff764fa3da70063a1d4ff21..7e8a755b205e70ff487e64d77212fb67cf0cf4e3 100644 (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";