]> granicus.if.org Git - clang/commitdiff
[analyzer] The patch prevents the analyzer from crashing during CFG dump.
authorAnton Yartsev <anton.yartsev@gmail.com>
Wed, 22 Jan 2014 13:19:48 +0000 (13:19 +0000)
committerAnton Yartsev <anton.yartsev@gmail.com>
Wed, 22 Jan 2014 13:19:48 +0000 (13:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199800 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/MallocChecker.cpp

index 1e996589c1b03120f15f1487d679b8d7f3fe7030..188974391ce7fe942baae988dee9e14ced3ebb7d 100644 (file)
@@ -103,7 +103,8 @@ public:
     static const char *const Table[] = {
       "Allocated",
       "Released",
-      "Relinquished"
+      "Relinquished",
+      "Escaped"
     };
     OS << Table[(unsigned) K];
   }