diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-10-15 22:50:23 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-10-15 22:50:23 +0000 |
commit | abf517c523985f20bb6458e0aa1afad434de3244 (patch) | |
tree | fc6b1785117b1b1ce6156bd693020c02329fa5ea /lib/Checker/CFRefCount.cpp | |
parent | 0313f441b72ef6b69a93e5003c684b01cb72fd46 (diff) |
Tweak retain/release checker diagnostics to specify a leak occurs because an object is not referenced later in the path,
not that it isn't referenced later in the code. Fixes <rdar://problem/8527839>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/CFRefCount.cpp')
-rw-r--r-- | lib/Checker/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Checker/CFRefCount.cpp b/lib/Checker/CFRefCount.cpp index 35451a1866..8d1f4ba053 100644 --- a/lib/Checker/CFRefCount.cpp +++ b/lib/Checker/CFRefCount.cpp @@ -2420,8 +2420,8 @@ CFRefLeakReport::getEndPath(BugReporterContext& BRC, "collector"; } else - os << " is no longer referenced after this point and has a retain count of" - " +" << RV->getCount() << " (object leaked)"; + os << " is not referenced later in this execution path and has a retain " + "count of +" << RV->getCount() << " (object leaked)"; return new PathDiagnosticEventPiece(L, os.str()); } |