[llvm] r208622 - use nullptr instead of NULL

Sebastian Pop spop at codeaurora.org
Mon May 12 13:11:01 PDT 2014


Author: spop
Date: Mon May 12 15:11:01 2014
New Revision: 208622

URL: http://llvm.org/viewvc/llvm-project?rev=208622&view=rev
Log:
use nullptr instead of NULL

Modified:
    llvm/trunk/lib/Analysis/ScalarEvolution.cpp

Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=208622&r1=208621&r2=208622&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Mon May 12 15:11:01 2014
@@ -7344,7 +7344,7 @@ const SCEV *SCEVAddRecExpr::computeAcces
 
   // 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(ScalarEvolut
   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";





More information about the llvm-commits mailing list