Use nullptr instead of '0' for pointers

llvm-svn: 221982
This commit is contained in:
Tobias Grosser 2014-11-14 11:12:31 +00:00
parent 734d52b58b
commit c98a8fccf7
5 changed files with 5 additions and 5 deletions

View File

@ -452,7 +452,7 @@ bool Dependences::isValidScattering(StatementToIslMapTy *NewScattering) {
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;

View File

@ -1800,7 +1800,7 @@ bool ScopInfo::runOnRegion(Region *R, RGPassManager &RGM) {
// This region is no Scop.
if (!tempScop) {
scop = 0;
scop = nullptr;
return false;
}

View File

@ -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);

View File

@ -762,7 +762,7 @@ void ClastStmtCodeGen::codegenForGPGPU(const clast_for *F) {
BasicBlock::iterator AfterLoop = Builder.GetInsertPoint();
Builder.SetInsertPoint(LoopBody);
BasicBlock *AfterBB = 0;
BasicBlock *AfterBB = nullptr;
if (NonPLoopDepth) {
Value *LowerBound, *UpperBound, *IV, *Stride;
Type *IntPtrTy = getIntPtrTy();

View File

@ -396,7 +396,7 @@ __isl_give isl_ast_expr *IslAst::getRunCondition() {
void IslAstInfo::releaseMemory() {
if (Ast) {
delete Ast;
Ast = 0;
Ast = nullptr;
}
}