From: Anna Zaks Date: Mon, 5 Dec 2011 18:58:11 +0000 (+0000) Subject: [analyzer] Change RetainCountChecker to use symbol dump method instead X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f62ceec2173e6eefa3879ffa6a7bd68cba463023;p=clang [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 --- 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 << ""; Out << ":{";