diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-18 05:32:44 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-18 05:32:44 +0000 |
commit | 79c140bbfc8f25e7d35a63d8a7a5236caae75bb1 (patch) | |
tree | 9e74ab2d6827d1c5c89e489e0b56fbf84dba78a7 /lib | |
parent | 5e770cae7dee13d4f9509da67a89799a0675e441 (diff) |
More grammar fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 5ff3ce5855..1c2f20aa3b 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/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(); |