diff options
author | Anna Zaks <ganna@apple.com> | 2013-04-12 18:40:21 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-04-12 18:40:21 +0000 |
commit | 9e2f5977a180ae927d05e844c65b8a7873be48a4 (patch) | |
tree | 96fa8bd1b0f074f3870cbe140c2c9a9e8a23b528 /lib/StaticAnalyzer/Checkers/MallocChecker.cpp | |
parent | 333ac6ed908bd70b879243a1d8541c27f142b40a (diff) |
[analyzer]Print field region even when the base region is not printable
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index b000bfae4b..e19e3f72c7 100644 --- a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -1606,9 +1606,8 @@ void MallocChecker::reportLeak(SymbolRef Sym, ExplodedNode *N, SmallString<200> buf; llvm::raw_svector_ostream os(buf); if (Region && Region->canPrintPretty()) { - os << "Potential leak of memory pointed to by '"; + os << "Potential leak of memory pointed to by "; Region->printPretty(os); - os << '\''; } else { os << "Potential memory leak"; } |