aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-01-28 06:01:42 +0000
committerTed Kremenek <kremenek@apple.com>2009-01-28 06:01:42 +0000
commita102c0c7061967063814ab032fe36401284f85ac (patch)
tree5eaef121d00c99219a549db396ae27dbe0366bcb /lib/Analysis/CFRefCount.cpp
parent2d1652e0f5a94c62ac2390a2e829d0094b12cf7a (diff)
retain/release checker: More diagnostic refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r--lib/Analysis/CFRefCount.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 61c1f1835b..bd11c3a0b2 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -606,8 +606,6 @@ public:
} // end anonymous namespace
-
-
//===----------------------------------------------------------------------===//
// Implementation of checker data structures.
//===----------------------------------------------------------------------===//
@@ -2343,15 +2341,15 @@ PathDiagnosticPiece* CFRefReport::VisitNode(const ExplodedNode<GRState>* N,
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 {