From: Ted Kremenek Date: Tue, 2 Dec 2008 01:26:07 +0000 (+0000) Subject: Add FIXME. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04f9d468f7abfd8a1d85a2ef7cd9c48adb1efa58;p=clang Add FIXME. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60390 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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()