Skip to content

Commit

Permalink
Added debug message in ObjCARC when we remove a no-op cast which has …
Browse files Browse the repository at this point in the history
…only special semantic meaning in the frontend and thus in the optimizer can be deleted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171670 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gottesmm committed Jan 6, 2013
1 parent 48239c7 commit 4680abe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Transforms/Scalar/ObjCARC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4680abe

Please sign in to comment.