mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[ObjCARC Debug Message] - Added debug message when we erase ARC calls with null since they are no-ops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38bc25a52e
commit
fbe4d6b1fa
@ -2468,6 +2468,8 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
|
||||
if (isNullOrUndef(Arg)) {
|
||||
Changed = true;
|
||||
++NumNoops;
|
||||
DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: ARC calls with "
|
||||
" null are no-ops. Erasing: " << *Inst << "\n");
|
||||
EraseInstruction(Inst);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user