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

Ted Kremenek kremenek at apple.com
Tue Jan 27 22:01:42 PST 2009


Author: kremenek
Date: Wed Jan 28 00:01:42 2009
New Revision: 63184

URL: http://llvm.org/viewvc/llvm-project?rev=63184&view=rev
Log:
retain/release checker: More diagnostic refactoring.

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=63184&r1=63183&r2=63184&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Wed Jan 28 00:01:42 2009
@@ -606,8 +606,6 @@
   
 } // end anonymous namespace
 
-
-
 //===----------------------------------------------------------------------===//
 // Implementation of checker data structures.
 //===----------------------------------------------------------------------===//
@@ -2343,15 +2341,15 @@
       if (loc::FuncVal* FV = dyn_cast<loc::FuncVal>(&X))
         os << "Call to function '" << FV->getDecl()->getNameAsString() <<'\'';
       else
-        os << "function call";
-      
-      os << " returns an object with a ";
+        os << "function call";      
     }          
     else {
       assert (isa<ObjCMessageExpr>(S));
-      os << "Method returns an object with a ";
+      os << "Method";
     }
     
+    os << " returns an object with a ";
+    
     if (CurrV.isOwned())
         os << "+1 retain count (owning reference).";
     else {





More information about the cfe-commits mailing list