Added debug message for ObjCARC when we zap an objc_autoreleaseReturnValue/objc_retainAutoreleasedValue pair.

llvm-svn: 171628
This commit is contained in:
Michael Gottesman 2013-01-05 17:55:35 +00:00
parent 473988cf54
commit 5c32ce9d3e
1 changed files with 5 additions and 0 deletions

View File

@ -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;