mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Added DEBUG message to ObjCARC when we transform objc_initWeak(p, null) => *p = null.
llvm-svn: 171463
This commit is contained in:
parent
fcffa87a15
commit
5c76a62ee6
@ -4168,6 +4168,10 @@ bool ObjCARCContract::runOnFunction(Function &F) {
|
|||||||
ConstantPointerNull::get(cast<PointerType>(CI->getType()));
|
ConstantPointerNull::get(cast<PointerType>(CI->getType()));
|
||||||
Changed = true;
|
Changed = true;
|
||||||
new StoreInst(Null, CI->getArgOperand(0), CI);
|
new StoreInst(Null, CI->getArgOperand(0), CI);
|
||||||
|
|
||||||
|
DEBUG(dbgs() << "OBJCARCContract: Old = " << *CI << "\n"
|
||||||
|
<< " New = " << *Null << "\n");
|
||||||
|
|
||||||
CI->replaceAllUsesWith(Null);
|
CI->replaceAllUsesWith(Null);
|
||||||
CI->eraseFromParent();
|
CI->eraseFromParent();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user