[cfe-commits] r60390 - /cfe/trunk/lib/Analysis/CFRefCount.cpp

Ted Kremenek kremenek at apple.com
Mon Dec 1 17:26:08 PST 2008


Author: kremenek
Date: Mon Dec  1 19:26:07 2008
New Revision: 60390

URL: http://llvm.org/viewvc/llvm-project?rev=60390&view=rev
Log:
Add FIXME.

Modified:
    cfe/trunk/lib/Analysis/CFRefCount.cpp

Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=60390&r1=60389&r2=60390&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Mon Dec  1 19:26:07 2008
@@ -2633,6 +2633,9 @@
   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()





More information about the cfe-commits mailing list