projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50652cd
)
Added DEBUG message to ObjCARC when we transform objc_initWeak(p, null) => *p = null.
author
Michael Gottesman
<mgottesman@apple.com>
Thu, 3 Jan 2013 07:32:53 +0000
(07:32 +0000)
committer
Michael Gottesman
<mgottesman@apple.com>
Thu, 3 Jan 2013 07:32:53 +0000
(07:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171463
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/ObjCARC.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/ObjCARC.cpp
b/lib/Transforms/Scalar/ObjCARC.cpp
index 13d2060a75284e84c36c56f1b336d30769046e82..32019334e447580d390fee036ff8346f4e6540ce 100644
(file)
--- a/
lib/Transforms/Scalar/ObjCARC.cpp
+++ b/
lib/Transforms/Scalar/ObjCARC.cpp
@@
-4168,6
+4168,10
@@
bool ObjCARCContract::runOnFunction(Function &F) {
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();
}