summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-02-28 21:49:08 +0000
committerAnna Zaks <ganna@apple.com>2012-02-28 21:49:08 +0000
commit16f383106445a7b7b92ee6871b16d3b2a26264b6 (patch)
tree9857297eca7ca0daf74f5ef7c41198ffa6c16e87 /clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
parentb6e2854f6886741626e51eb2f121fc030b6c0b78 (diff)
downloadbcm5719-llvm-16f383106445a7b7b92ee6871b16d3b2a26264b6.tar.gz
bcm5719-llvm-16f383106445a7b7b92ee6871b16d3b2a26264b6.zip
[analyzer] Retain release: drop the line number info from the leak
message. llvm-svn: 151657
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
index 3ae76e02030..2350298b638 100644
--- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
@@ -2257,15 +2257,14 @@ CFRefLeakReport::CFRefLeakReport(CFRefBug &D, const LangOptions &LOpts,
// Fill in the description of the bug.
Description.clear();
llvm::raw_string_ostream os(Description);
- unsigned AllocLine = SMgr.getExpansionLineNumber(AllocStmt->getLocStart());
os << "Potential leak ";
if (GCEnabled)
os << "(when using garbage collection) ";
- os << "of an object allocated on line " << AllocLine;
+ os << "of an object";
// FIXME: AllocBinding doesn't get populated for RegionStore yet.
if (AllocBinding)
- os << " and stored into '" << AllocBinding->getString() << '\'';
+ os << " stored into '" << AllocBinding->getString() << '\'';
addVisitor(new CFRefLeakReportVisitor(sym, GCEnabled, Log));
}
OpenPOWER on IntegriCloud