More grammar fixes.

llvm-svn: 49895
This commit is contained in:
Ted Kremenek 2008-04-18 05:32:44 +00:00
parent ca8892b456
commit f03e07c34d
1 changed files with 8 additions and 2 deletions

View 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();