]> granicus.if.org Git - clang/commitdiff
More grammar fixes.
authorTed Kremenek <kremenek@apple.com>
Fri, 18 Apr 2008 05:32:44 +0000 (05:32 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 18 Apr 2008 05:32:44 +0000 (05:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49895 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index 5ff3ce5855b1ca6a1acb11678e3215867d9ec269..1c2f20aa3bdf3d1e3768658867eea9c5688a1044 100644 (file)
@@ -1371,8 +1371,14 @@ PathDiagnosticPiece* CFRefReport::VisitNode(ExplodedNode<ValueState>* N,
       else
         os << "Reference count incremented.";
       
-      if (CurrV.getCount())
-        os << " Object has +" << CurrV.getCount() << " reference count.";
+      if (CurrV.getCount()) {
+        os << " Object has +" << CurrV.getCount();
+        
+        if (CurrV.getCount() > 1)
+          os << " reference counts.";
+        else
+          os << " reference count.";
+      }
       
       Msg = os.str().c_str();