retain/release checker: don't track NSPanel until we have better reasoning about
the subtle ownership issues of such objects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68397 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 95df6b4..4473dbf 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -1184,8 +1184,10 @@
// 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 @@
// 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);