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:
Michael Gottesman 2013-01-06 21:07:15 +00:00
parent 1bf6908867
commit dc042f0089
1 changed files with 2 additions and 0 deletions

View File

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