[PATCH] Disallow clang from assigning a diagnostic to ID zero

David Majnemer david.majnemer at gmail.com
Tue Jul 2 14:45:25 PDT 2013


Ping


On Fri, Jun 21, 2013 at 3:42 AM, David Majnemer <david.majnemer at gmail.com>wrote:

> The fallout of r184401 made it apparent that clang uses diagnostic ID
> zero as a sentinel value while *also* assigning it to an actual diagnostic,
> err_attribute_not_type_attr.
>
> The attached patch should do two things:
> * Ensure that we don't give away ID 0
> * Make sure that we will assert if we attempt to use ID 0
>
> --
> David Majnemer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130702/0be1079f/attachment.html>


More information about the cfe-commits mailing list