Added debug message in ObjCARC when we remove a no-op cast which has only special...
authorMichael Gottesman <mgottesman@apple.com>
Sun, 6 Jan 2013 21:07:15 +0000 (21:07 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Sun, 6 Jan 2013 21:07:15 +0000 (21:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171670 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ObjCARC.cpp

index a17ff50c04696ff40f8959b05f2d2651a26792ad..e68f2add73b856247c771a1c01f417a3b6254443 100644 (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;