diff options
author | Anna Zaks <ganna@apple.com> | 2012-02-28 21:49:08 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-02-28 21:49:08 +0000 |
commit | 16f383106445a7b7b92ee6871b16d3b2a26264b6 (patch) | |
tree | 9857297eca7ca0daf74f5ef7c41198ffa6c16e87 /clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | |
parent | b6e2854f6886741626e51eb2f121fc030b6c0b78 (diff) | |
download | bcm5719-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.cpp | 5 |
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)); } |