r199800 - [analyzer] The patch prevents the analyzer from crashing during CFG dump.
Anton Yartsev
anton.yartsev at gmail.com
Wed Jan 22 05:19:48 PST 2014
Author: ayartsev
Date: Wed Jan 22 07:19:48 2014
New Revision: 199800
URL: http://llvm.org/viewvc/llvm-project?rev=199800&view=rev
Log:
[analyzer] The patch prevents the analyzer from crashing during CFG dump.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp?rev=199800&r1=199799&r2=199800&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp Wed Jan 22 07:19:48 2014
@@ -103,7 +103,8 @@ public:
static const char *const Table[] = {
"Allocated",
"Released",
- "Relinquished"
+ "Relinquished",
+ "Escaped"
};
OS << Table[(unsigned) K];
}
More information about the cfe-commits
mailing list