r199800 - [analyzer] The patch prevents the analyzer from crashing during CFG dump.

Jordan Rose jordan_rose at apple.com
Wed Jan 22 09:18:51 PST 2014


Aha. Thanks, Anton.

On Jan 22, 2014, at 5:19 , Anton Yartsev <anton.yartsev at gmail.com> wrote:

> 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];
>   }
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list