diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-05-02 19:05:19 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-05-02 19:05:19 +0000 |
commit | dd924e256e85a8486d571b8e95a30a9fa38092fa (patch) | |
tree | 7e1148b9494181409ee9602e0d7a9cf70a5e06ec /lib/Analysis/CFRefCount.cpp | |
parent | 5992e4a9cf7e2762a746a6d355dfab4598125012 (diff) |
retain/release checker: Enhance leak description to say that the bug
occurs in GC mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 7ea462a1bb..b4f8782690 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -2519,7 +2519,11 @@ CFRefLeakReport::CFRefLeakReport(CFRefBug& D, const CFRefCount &tf, llvm::raw_string_ostream os(Description); SourceManager& SMgr = Eng.getContext().getSourceManager(); unsigned AllocLine = SMgr.getInstantiationLineNumber(AllocSite); - os << "Potential leak of object allocated on line " << AllocLine; + os << "Potential leak "; + if (tf.isGCEnabled()) { + os << "(when using garbage collection) "; + } + os << "of an object allocated on line " << AllocLine; // FIXME: AllocBinding doesn't get populated for RegionStore yet. if (AllocBinding) |