diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-02-23 02:51:29 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-02-23 02:51:29 +0000 |
| commit | e73f282213af5f7f9d705f512fb384ff1395edd5 (patch) | |
| tree | 11d7c32b2d8f5d7889369bb7e75a9bb202278554 /clang/lib | |
| parent | e6d2b40bcc97d440df84abb4492e2b2c3a1e1fcb (diff) | |
| download | bcm5719-llvm-e73f282213af5f7f9d705f512fb384ff1395edd5.tar.gz bcm5719-llvm-e73f282213af5f7f9d705f512fb384ff1395edd5.zip | |
retain/release checker: For now don't track the retain count of NSWindow objects (opt for false negatives).
llvm-svn: 65304
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 0d5752d55bc..3816c560b3b 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -1130,8 +1130,12 @@ void RetainSummaryManager::InitializeMethodSummaries() { addNSObjectMethSummary(GetNullarySelector("autorelease", Ctx), Summ); // For NSWindow, allocated objects are (initially) self-owned. + // FIXME: For now we opt for false negatives with NSWindow, as these objects + // self-own themselves. However, they only do this once they are displayed. + // Thus, we need to track an NSWindow's display status. + // This is tracked in <rdar://problem/6062711>. RetainSummary *NSWindowSumm = - getPersistentSummary(RetEffect::MakeReceiverAlias(), SelfOwn); + getPersistentSummary(RetEffect::MakeReceiverAlias(), StopTracking); addInstMethSummary("NSWindow", NSWindowSumm, "initWithContentRect", "styleMask", "backing", "defer", NULL); |

