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 | 6cea7d9e5e2d7fc2a0111582863424279423e565 (patch) | |
tree | 8b9b7948200e3c182090e2341cff5616edf5ba62 /clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | |
parent | f8bcfbdd5fc0dbfdee00ed39145f11ac2a185c22 (diff) | |
download | bcm5719-llvm-6cea7d9e5e2d7fc2a0111582863424279423e565.tar.gz bcm5719-llvm-6cea7d9e5e2d7fc2a0111582863424279423e565.zip |
[analyzer]Print field region even when the base region is not printable
llvm-svn: 179395
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index b000bfae4b6..e19e3f72c7f 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/clang/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"; } |