[PATCH] Properly consider the range of enum for range comparisons in C mode

David Majnemer david.majnemer at gmail.com
Thu May 30 23:47:26 PDT 2013


In some cases, clang applies the C++ rules for computing the range of a
value when said value is an enum.

The attached patch applies C semantics when in C mode.

This fixes PR16154.

-- 
David Majnemer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130530/f1f2cebf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr16154.diff
Type: application/octet-stream
Size: 2085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130530/f1f2cebf/attachment.obj>


More information about the cfe-commits mailing list