mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 22:50:47 +00:00
Added debug message for ObjCARC when we zap an objc_autoreleaseReturnValue/objc_retainAutoreleasedValue pair.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
261304248f
commit
87a0f02953
@ -2247,6 +2247,11 @@ ObjCARCOpt::OptimizeRetainRVCall(Function &F, Instruction *RetainRV) {
|
||||
GetObjCArg(I) == Arg) {
|
||||
Changed = true;
|
||||
++NumPeeps;
|
||||
|
||||
DEBUG(dbgs() << "ObjCARCOpt::OptimizeRetainRVCall: Erasing " << *I << "\n"
|
||||
<< " Erasing " << *RetainRV
|
||||
<< "\n");
|
||||
|
||||
EraseInstruction(I);
|
||||
EraseInstruction(RetainRV);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user