[polly] r221982 - Use nullptr instead of '0' for pointers

Tobias Grosser tobias at grosser.es
Fri Nov 14 03:12:31 PST 2014


Author: grosser
Date: Fri Nov 14 05:12:31 2014
New Revision: 221982

URL: http://llvm.org/viewvc/llvm-project?rev=221982&view=rev
Log:
Use nullptr instead of '0' for pointers

Modified:
    polly/trunk/lib/Analysis/Dependences.cpp
    polly/trunk/lib/Analysis/ScopInfo.cpp
    polly/trunk/lib/Analysis/ScopPass.cpp
    polly/trunk/lib/CodeGen/CodeGeneration.cpp
    polly/trunk/lib/CodeGen/IslAst.cpp

Modified: polly/trunk/lib/Analysis/Dependences.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/Dependences.cpp?rev=221982&r1=221981&r2=221982&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/Dependences.cpp (original)
+++ polly/trunk/lib/Analysis/Dependences.cpp Fri Nov 14 05:12:31 2014
@@ -452,7 +452,7 @@ bool Dependences::isValidScattering(Stat
   isl_space *Space = S.getParamSpace();
   isl_union_map *Scattering = isl_union_map_empty(Space);
 
-  isl_space *ScatteringSpace = 0;
+  isl_space *ScatteringSpace = nullptr;
 
   for (ScopStmt *Stmt : S) {
     isl_map *StmtScat;

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=221982&r1=221981&r2=221982&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Nov 14 05:12:31 2014
@@ -1800,7 +1800,7 @@ bool ScopInfo::runOnRegion(Region *R, RG
 
   // This region is no Scop.
   if (!tempScop) {
-    scop = 0;
+    scop = nullptr;
     return false;
   }
 

Modified: polly/trunk/lib/Analysis/ScopPass.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopPass.cpp?rev=221982&r1=221981&r2=221982&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopPass.cpp (original)
+++ polly/trunk/lib/Analysis/ScopPass.cpp Fri Nov 14 05:12:31 2014
@@ -18,7 +18,7 @@ using namespace llvm;
 using namespace polly;
 
 bool ScopPass::runOnRegion(Region *R, RGPassManager &RGM) {
-  S = 0;
+  S = nullptr;
 
   if ((S = getAnalysis<ScopInfo>().getScop()))
     return runOnScop(*S);

Modified: polly/trunk/lib/CodeGen/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodeGeneration.cpp?rev=221982&r1=221981&r2=221982&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Fri Nov 14 05:12:31 2014
@@ -762,7 +762,7 @@ void ClastStmtCodeGen::codegenForGPGPU(c
   BasicBlock::iterator AfterLoop = Builder.GetInsertPoint();
   Builder.SetInsertPoint(LoopBody);
 
-  BasicBlock *AfterBB = 0;
+  BasicBlock *AfterBB = nullptr;
   if (NonPLoopDepth) {
     Value *LowerBound, *UpperBound, *IV, *Stride;
     Type *IntPtrTy = getIntPtrTy();

Modified: polly/trunk/lib/CodeGen/IslAst.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslAst.cpp?rev=221982&r1=221981&r2=221982&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslAst.cpp (original)
+++ polly/trunk/lib/CodeGen/IslAst.cpp Fri Nov 14 05:12:31 2014
@@ -396,7 +396,7 @@ __isl_give isl_ast_expr *IslAst::getRunC
 void IslAstInfo::releaseMemory() {
   if (Ast) {
     delete Ast;
-    Ast = 0;
+    Ast = nullptr;
   }
 }
 





More information about the llvm-commits mailing list