mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Added DEBUG message to ObjCARC when we transform objc_initWeak(p, null) => *p = null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user