summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-03 19:02:51 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-03 19:02:51 +0000
commit751e7e38332ea88017ee70ffe8c0f89c7fb98cb1 (patch)
tree111e095177257ee65d2aafbc15302c1f5ae51162 /clang/lib/Analysis/CFRefCount.cpp
parent99c54d7fb082f932d273bf06e4c1063b9da0211f (diff)
downloadbcm5719-llvm-751e7e38332ea88017ee70ffe8c0f89c7fb98cb1.tar.gz
bcm5719-llvm-751e7e38332ea88017ee70ffe8c0f89c7fb98cb1.zip
retain/release checker: don't track NSPanel until we have better reasoning about
the subtle ownership issues of such objects. llvm-svn: 68397
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 95df6b4c1c3..4473dbf0869 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -1184,8 +1184,10 @@ void RetainSummaryManager::InitializeMethodSummaries() {
// Thus, we need to track an NSWindow's display status.
// This is tracked in <rdar://problem/6062711>.
// See also http://llvm.org/bugs/show_bug.cgi?id=3714.
- addClassMethSummary("NSWindow", "alloc",
- getPersistentSummary(RetEffect::MakeNoRet()));
+ RetainSummary *NoTrackYet = getPersistentSummary(RetEffect::MakeNoRet());
+
+ addClassMethSummary("NSWindow", "alloc", NoTrackYet);
+
#if 0
RetainSummary *NSWindowSumm =
@@ -1200,6 +1202,10 @@ void RetainSummaryManager::InitializeMethodSummaries() {
// For NSPanel (which subclasses NSWindow), allocated objects are not
// self-owned.
+ // FIXME: For now we don't track NSPanels. object for the same reason
+ // as for NSWindow objects.
+ addClassMethSummary("NSPanel", "alloc", NoTrackYet);
+
addInstMethSummary("NSPanel", InitSumm, "initWithContentRect",
"styleMask", "backing", "defer", NULL);
OpenPOWER on IntegriCloud