[PATCH] Disallow clang from assigning a diagnostic to ID zero
David Majnemer
david.majnemer at gmail.com
Fri Jun 21 03:42:15 PDT 2013
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/20130621/4790ecf1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diag0.diff
Type: application/octet-stream
Size: 3375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130621/4790ecf1/attachment.obj>
More information about the cfe-commits
mailing list