[llvm-commits] [llvm] r171463 - /llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Michael Gottesman
mgottesman at apple.com
Wed Jan 2 23:32:53 PST 2013
Author: mgottesman
Date: Thu Jan 3 01:32:53 2013
New Revision: 171463
URL: http://llvm.org/viewvc/llvm-project?rev=171463&view=rev
Log:
Added DEBUG message to ObjCARC when we transform objc_initWeak(p, null) => *p = null.
Modified:
llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp?rev=171463&r1=171462&r2=171463&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp Thu Jan 3 01:32:53 2013
@@ -4168,6 +4168,10 @@
ConstantPointerNull::get(cast<PointerType>(CI->getType()));
Changed = true;
new StoreInst(Null, CI->getArgOperand(0), CI);
+
+ DEBUG(dbgs() << "OBJCARCContract: Old = " << *CI << "\n"
+ << " New = " << *Null << "\n");
+
CI->replaceAllUsesWith(Null);
CI->eraseFromParent();
}
More information about the llvm-commits
mailing list