[cfe-commits] r145829 - /cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
Anna Zaks
ganna at apple.com
Mon Dec 5 10:58:11 PST 2011
Author: zaks
Date: Mon Dec 5 12:58:11 2011
New Revision: 145829
URL: http://llvm.org/viewvc/llvm-project?rev=145829&view=rev
Log:
[analyzer] Change RetainCountChecker to use symbol dump method instead
of relying on SymbolID.
This way any expression can be printed (not only SymbolData).
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp?rev=145829&r1=145828&r2=145829&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp Mon Dec 5 12:58:11 2011
@@ -3467,7 +3467,8 @@
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 @@
const ProgramState *State) {
Out << ' ';
if (Sym)
- Out << Sym->getSymbolID();
+ Sym->dumpToStream(Out);
else
Out << "<pool>";
Out << ":{";
More information about the cfe-commits
mailing list