diff options
author | Anna Zaks <ganna@apple.com> | 2011-12-05 18:58:11 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-12-05 18:58:11 +0000 |
commit | 223516523ee764dff96bd054ef9c75a86f8ab235 (patch) | |
tree | 7e96ecbd8002ff2cc324c1c2a9c09938f22aa717 /clang | |
parent | f784d08d25763ec5cf6b419b98697a9b256039d2 (diff) | |
download | bcm5719-llvm-223516523ee764dff96bd054ef9c75a86f8ab235.tar.gz bcm5719-llvm-223516523ee764dff96bd054ef9c75a86f8ab235.zip |
[analyzer] Change RetainCountChecker to use symbol dump method instead
of relying on SymbolID.
This way any expression can be printed (not only SymbolData).
llvm-svn: 145829
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index 22cd050df31..2206fbef61c 100644 --- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/clang/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 << ":{"; |