aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-12-02 01:26:07 +0000
committerTed Kremenek <kremenek@apple.com>2008-12-02 01:26:07 +0000
commit04f9d468f7abfd8a1d85a2ef7cd9c48adb1efa58 (patch)
treee74b8c50a92235bbf3ad5308b7f5e29631860d10 /lib/Analysis/CFRefCount.cpp
parenta385b3c9c442831fc6a9ec6e8823b2067bd65710 (diff)
Add FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r--lib/Analysis/CFRefCount.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 56f5ab6234..461754efb8 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -2633,6 +2633,9 @@ PathDiagnosticPiece* CFRefReport::getEndPath(BugReporter& br,
const RefVal* RV = EndN->getState()->get<RefBindings>(Sym);
if (RV->getKind() == RefVal::ErrorLeakReturned) {
+ // FIXME: Per comments in rdar://6320065, "create" only applies to CF
+ // ojbects. Only "copy", "alloc", "retain" and "new" transfer ownership
+ // to the caller for NS objects.
ObjCMethodDecl& MD = cast<ObjCMethodDecl>(BR.getGraph().getCodeDecl());
os << " is returned from a method whose name ('"
<< MD.getSelector().getAsString()