mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
Added debug statement to ObjCARC when we replace objc_autorelease(x) with objc_release(x) when x is otherwise unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171673 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e549492c36
commit
20d9fff206
@ -2425,6 +2425,14 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
|
||||
Call->getArgOperand(0), "", Call);
|
||||
NewCall->setMetadata(ImpreciseReleaseMDKind,
|
||||
MDNode::get(C, ArrayRef<Value *>()));
|
||||
|
||||
DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Replacing "
|
||||
"objc_autorelease(x) with objc_release(x) since x is "
|
||||
"otherwise unused.\n"
|
||||
" Old: " << *Call
|
||||
"\n New: " <<
|
||||
*NewCall << "\n");
|
||||
|
||||
EraseInstruction(Call);
|
||||
Inst = NewCall;
|
||||
Class = IC_Release;
|
||||
|
Loading…
Reference in New Issue
Block a user