projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added debug message for ObjCARC when we zap an objc_autoreleaseReturnValue/objc_retai...
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
ObjCARC.cpp
diff --git
a/lib/Transforms/Scalar/ObjCARC.cpp
b/lib/Transforms/Scalar/ObjCARC.cpp
index 1e9b08e736d21e280d1a388301f9c6513a8ce7d3..de0971394b7fb6b3b4c7af2a8bc2c0d4a7d74c7b 100644
(file)
--- a/
lib/Transforms/Scalar/ObjCARC.cpp
+++ b/
lib/Transforms/Scalar/ObjCARC.cpp
@@
-2247,6
+2247,11
@@
ObjCARCOpt::OptimizeRetainRVCall(Function &F, Instruction *RetainRV) {
GetObjCArg(I) == Arg) {
Changed = true;
++NumPeeps;
+
+ DEBUG(dbgs() << "ObjCARCOpt::OptimizeRetainRVCall: Erasing " << *I << "\n"
+ << " Erasing " << *RetainRV
+ << "\n");
+
EraseInstruction(I);
EraseInstruction(RetainRV);
return true;