summaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2014-05-12 20:11:01 +0000
committerSebastian Pop <spop@codeaurora.org>2014-05-12 20:11:01 +0000
commitd2b27bba87a9e2d82d1974e45002aa32eeec4662 (patch)
treedffc2e2faee79bb600d842201eb24cb0fda0e301 /lib/Analysis
parent45fc47013f9c9530c7db75bfbead24f65365ee0b (diff)
downloadllvm-d2b27bba87a9e2d82d1974e45002aa32eeec4662.tar.gz
llvm-d2b27bba87a9e2d82d1974e45002aa32eeec4662.tar.bz2
llvm-d2b27bba87a9e2d82d1974e45002aa32eeec4662.tar.xz
use nullptr instead of NULL
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index 8073b270e1..7e8a755b20 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -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";