mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +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:
@@ -158,7 +158,7 @@ ObjCARCContract::ContractAutorelease(Function &F, Instruction *Autorelease,
|
||||
|
||||
// Check that there are no instructions between the retain and the autorelease
|
||||
// (such as an autorelease_pop) which may change the count.
|
||||
CallInst *Retain = 0;
|
||||
CallInst *Retain = nullptr;
|
||||
if (Class == IC_AutoreleaseRV)
|
||||
FindDependencies(RetainAutoreleaseRVDep, Arg,
|
||||
Autorelease->getParent(), Autorelease,
|
||||
@@ -219,7 +219,7 @@ void ObjCARCContract::ContractRelease(Instruction *Release,
|
||||
BasicBlock::iterator I = Load, End = BB->end();
|
||||
++I;
|
||||
AliasAnalysis::Location Loc = AA->getLocation(Load);
|
||||
StoreInst *Store = 0;
|
||||
StoreInst *Store = nullptr;
|
||||
bool SawRelease = false;
|
||||
for (; !Store || !SawRelease; ++I) {
|
||||
if (I == End)
|
||||
@@ -301,7 +301,7 @@ bool ObjCARCContract::doInitialization(Module &M) {
|
||||
EP.Initialize(&M);
|
||||
|
||||
// Initialize RetainRVMarker.
|
||||
RetainRVMarker = 0;
|
||||
RetainRVMarker = nullptr;
|
||||
if (NamedMDNode *NMD =
|
||||
M.getNamedMetadata("clang.arc.retainAutoreleasedReturnValueMarker"))
|
||||
if (NMD->getNumOperands() == 1) {
|
||||
|
Reference in New Issue
Block a user