Added debug message in ObjCARC when we remove a no-op cast which has only special...
[oota-llvm.git] / 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;