aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-12-05 18:58:11 +0000
committerAnna Zaks <ganna@apple.com>2011-12-05 18:58:11 +0000
commitf62ceec2173e6eefa3879ffa6a7bd68cba463023 (patch)
tree7dada6833ece95ae207060233f8532091fb00d37 /lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
parentd0167853f46cc78787b06255a44f9dcedd04a8ec (diff)
[analyzer] Change RetainCountChecker to use symbol dump method instead
of relying on SymbolID. This way any expression can be printed (not only SymbolData). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp')
-rw-r--r--lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
index 22cd050df3..2206fbef61 100644
--- a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
+++ b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
@@ -3467,7 +3467,8 @@ RetainCountChecker::getDeadSymbolTag(SymbolRef sym) const {
if (!tag) {
llvm::SmallString<64> buf;
llvm::raw_svector_ostream out(buf);
- out << "RetainCountChecker : Dead Symbol : " << sym->getSymbolID();
+ out << "RetainCountChecker : Dead Symbol : ";
+ sym->dumpToStream(out);
tag = new SimpleProgramPointTag(out.str());
}
return tag;
@@ -3532,7 +3533,7 @@ static void PrintPool(raw_ostream &Out, SymbolRef Sym,
const ProgramState *State) {
Out << ' ';
if (Sym)
- Out << Sym->getSymbolID();
+ Sym->dumpToStream(Out);
else
Out << "<pool>";
Out << ":{";