summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-18 05:32:44 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-18 05:32:44 +0000
commitf03e07c34ddefc49d3496f43f05fe9712ad650cf (patch)
tree9a43acc3f45c3e185553a1fa31dd6c82e07aa6cc
parentca8892b4568b64b41be709f35ed52c297d9a1f1f (diff)
downloadbcm5719-llvm-f03e07c34ddefc49d3496f43f05fe9712ad650cf.tar.gz
bcm5719-llvm-f03e07c34ddefc49d3496f43f05fe9712ad650cf.zip
More grammar fixes.
llvm-svn: 49895
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 5ff3ce5855b..1c2f20aa3bd 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -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();
OpenPOWER on IntegriCloud