forked from OSchip/llvm-project
Added debug message in ObjCARC when we remove a no-op cast which has only special semantic meaning in the frontend and thus in the optimizer can be deleted.
llvm-svn: 171670
This commit is contained in:
parent
1bf6908867
commit
dc042f0089
|
@ -2343,6 +2343,8 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
|
|||
case IC_NoopCast:
|
||||
Changed = true;
|
||||
++NumNoops;
|
||||
DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Erasing no-op cast:"
|
||||
" " << *Inst << "\n");
|
||||
EraseInstruction(Inst);
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue