r194540 - PR10837: Warn if a null pointer constant is formed by a zero integer constant

Joerg Sonnenberger joerg at britannica.bec.de
Mon Nov 18 16:14:16 PST 2013


On Wed, Nov 13, 2013 at 01:24:28AM -0000, Richard Smith wrote:
> Author: rsmith
> Date: Tue Nov 12 19:24:28 2013
> New Revision: 194540
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=194540&view=rev
> Log:
> PR10837: Warn if a null pointer constant is formed by a zero integer constant
> expression that is not a zero literal, in C. Patch by Ivan A. Kosarev!

This results in crashes, see attached test case.

Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nsCategoryCache.cc
Type: text/x-c++src
Size: 355 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131119/5214a154/attachment.cc>


More information about the cfe-commits mailing list