forked from OSchip/llvm-project
[ObjCARC Debug Message] - Added debug message when we zap a matching retain/autorelease pair in ObjCARCOpt::OptimizeReturns.
llvm-svn: 171678
This commit is contained in:
parent
5b970e14e6
commit
d61a3b2707
|
@ -3753,6 +3753,9 @@ void ObjCARCOpt::OptimizeReturns(Function &F) {
|
|||
// If so, we can zap the retain and autorelease.
|
||||
Changed = true;
|
||||
++NumRets;
|
||||
DEBUG(dbgs() << "ObjCARCOpt::OptimizeReturns: Erasing: " << *Retain
|
||||
<< "\n Erasing: "
|
||||
<< *Autorelease << "\n");
|
||||
EraseInstruction(Retain);
|
||||
EraseInstruction(Autorelease);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue