forked from OSchip/llvm-project
Added debug message for ObjCARC when we zap an objc_autoreleaseReturnValue/objc_retainAutoreleasedValue pair.
llvm-svn: 171628
This commit is contained in:
parent
473988cf54
commit
5c32ce9d3e
|
@ -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