From 04f9d468f7abfd8a1d85a2ef7cd9c48adb1efa58 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 2 Dec 2008 01:26:07 +0000 Subject: [PATCH] Add FIXME. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60390 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/CFRefCount.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(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(BR.getGraph().getCodeDecl()); os << " is returned from a method whose name ('" << MD.getSelector().getAsString() -- 2.50.1