mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[C++] Use 'nullptr'. Transforms edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -94,7 +94,7 @@ bool ObjCARCAPElim::MayAutorelease(ImmutableCallSite CS, unsigned Depth) {
|
||||
bool ObjCARCAPElim::OptimizeBB(BasicBlock *BB) {
|
||||
bool Changed = false;
|
||||
|
||||
Instruction *Push = 0;
|
||||
Instruction *Push = nullptr;
|
||||
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ) {
|
||||
Instruction *Inst = I++;
|
||||
switch (GetBasicInstructionClass(Inst)) {
|
||||
@@ -113,11 +113,11 @@ bool ObjCARCAPElim::OptimizeBB(BasicBlock *BB) {
|
||||
Inst->eraseFromParent();
|
||||
Push->eraseFromParent();
|
||||
}
|
||||
Push = 0;
|
||||
Push = nullptr;
|
||||
break;
|
||||
case IC_CallOrUser:
|
||||
if (MayAutorelease(ImmutableCallSite(Inst)))
|
||||
Push = 0;
|
||||
Push = nullptr;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user